Interface TransformStatistics

All Known Implementing Classes:
SimpleTransform

public interface TransformStatistics
An interface for the statistics that need to be collected for a specific Transformation on a single feature.

TransformStatistics are purely a runtime collection, they should not be persisted, nor can be directly constructed.

  • Method Summary

    Modifier and Type
    Method
    Description
    Generates the appropriate Transformer from the collected statistics.
    void
    Observes a sparse (i.e., zero) value.
    void
    observeSparse(int count)
    Observes count sparse values.
    void
    observeValue(double value)
    Observes a value and updates the statistics.
  • Method Details

    • observeValue

      void observeValue(double value)
      Observes a value and updates the statistics.
      Parameters:
      value - The value to observe.
    • observeSparse

      Observes a sparse (i.e., zero) value.
    • observeSparse

      void observeSparse(int count)
      Observes count sparse values.
      Parameters:
      count - The number of sparse values.
    • generateTransformer

      Generates the appropriate Transformer from the collected statistics.
      Returns:
      The Transformer.