Class FloatNetChangeKernel

java.lang.Object
io.deephaven.engine.table.impl.by.ssmpercentile.FloatNetChangeKernel
All Implemented Interfaces:
NetChangeKernel

public class FloatNetChangeKernel extends Object implements NetChangeKernel
NetChangeKernel for float values, ordered by FloatComparisons.compare(float, float). Only values with the same representation are netted; values that compare equal but differ in representation are both kept, so that the SSM replaces its representative when the old one is removed.
  • Method Details

    • net

      public void net(WritableChunk<Values> removes, WritableIntChunk<ChunkLengths> removeCounts, WritableChunk<Values> adds, WritableIntChunk<ChunkLengths> addCounts)
      Description copied from interface: NetChangeKernel
      Subtract the common occurrences of each value from both inputs, then drop the values whose count reaches zero. Both inputs must be sorted and free of duplicates, as CompactKernel.compactAndCount leaves them, with parallel counts. On return both inputs are still sorted, and every count is positive.
      Specified by:
      net in interface NetChangeKernel
      Parameters:
      removes - the values removed, input and output
      removeCounts - the number of times each value in removes was removed, input and output
      adds - the values added, input and output
      addCounts - the number of times each value in adds was added, input and output