Interface Sample.Derived

All Superinterfaces:
Sample
Enclosing interface:
Sample

public static interface Sample.Derived extends Sample
Sample that does not exist as an actual observation but is derived from actual observations. E.g., mean. Most derived sample instances have a reference to an actual sample that is an exemplar for the derived sample. Because derived samples are typically computed from actual samples, the value is a double (rather than a long as with the actual samples).
  • Nested Class Summary

    Nested classes/interfaces inherited from interface Sample

    Sample.Derived, Sample.Labeled
    Modifier and Type
    Interface
    Description
    static interface 
    Sample that does not exist as an actual observation but is derived from actual observations.
    static interface 
    A sample with a label and a timestamp, typically representing actual observations (rather than derived values).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Sample.Derived
    A derived sample with zero value and no reference.
  • Method Summary

    Modifier and Type
    Method
    Description
    Sample.
    double
    Derived value (usually computed).

    Methods inherited from interface Sample

    doubleValue
    Modifier and Type
    Method
    Description
    double
    Returns the value as a double.
  • Field Details

    • ZERO

      static final Sample.Derived ZERO
      A derived sample with zero value and no reference.
  • Method Details

    • value

      double value()
      Derived value (usually computed).
      Returns:
      value
    • sample

      Sample.Labeled sample()
      Sample.
      Returns:
      sample