Class VariabilityShare

java.lang.Object
org.variantsync.diffdetective.tablegen.TableDefinition
org.variantsync.diffdetective.tablegen.styles.VariabilityShare

public class VariabilityShare extends TableDefinition
A template of a LaTex table containing the share of variability changing edits for each dataset.

Each row represents one dataset and contains the following data:

  • the name of the dataset
  • the total number of edits to variability
  • a relative occurrence count for each edit class changing variability
  • Field Details

  • Constructor Details

    • VariabilityShare

      public VariabilityShare(Supplier<TableDefinition> inner)
      Constructs a table definition using inner to sort and filter the rows.
  • Method Details

    • isEditToVariability

      private static boolean isEditToVariability(EditClass c)
      Returns if the edit class c should be present in this table.
    • getVariationalEditClasses

      private static Stream<Map.Entry<EditClass,EditClassCount.Occurrences>> getVariationalEditClasses(ContentRow row)
      Returns the number of occurrences of edit classes present in the table.
    • countEditsToVariability

      private static int countEditsToVariability(ContentRow row)
      Compute the total sum of all occurrences of edit classes present in this table.
    • getRelativeShareOf

      private String getRelativeShareOf(EditClass editClass, ContentRow row)
      Compute the number of occurrences of editClass relative to the edit classes actually present in this table.
    • sortAndFilter

      public List<? extends Row> sortAndFilter(List<ContentRow> rows, ContentRow ultimateResult)
      Delegates to inner given in the constructor.
      Specified by:
      sortAndFilter in class TableDefinition
      Parameters:
      rows - the data to be sorted and filtered
      ultimateResult - a row containing accumulated results of rows