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 io.helidon.metrics.api.Sample

    Sample.Derived, Sample.Labeled
  • 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 io.helidon.metrics.api.Sample

    doubleValue
  • 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