Class SampledMetric

java.lang.Object
jline.inference.lang.SampledMetric
All Implemented Interfaces:
Serializable, Copyable

public class SampledMetric extends Object implements Copyable
Observed data for a metric.
See Also:
  • Field Details

    • type

      public final MetricType type
    • t

      public double[] t
    • data

      public double[] data
    • node

      public final Node node
    • jobClass

      public final JobClass jobClass
    • cond

      public ConditionEvent cond
  • Constructor Details

    • SampledMetric

      public SampledMetric(MetricType type, double[] t, double[] data, Node node, JobClass jobClass)
    • SampledMetric

      public SampledMetric(MetricType type, double[] t, double[] data, Node node)
  • Method Details

    • getType

      public MetricType getType()
    • getT

      public double[] getT()
    • setT

      public void setT(double[] t)
    • getData

      public double[] getData()
    • setData

      public void setData(double[] data)
    • getNode

      public Node getNode()
    • getJobClass

      public JobClass getJobClass()
    • getCond

      public ConditionEvent getCond()
    • getFormat

      public SampledFormat getFormat()
    • setConditional

      public void setConditional(ConditionEvent event)
      Set a conditioning event on this metric.
    • setTrace

      public void setTrace()
      Switch the data format to trace (per-request).
    • isAggregate

      public boolean isAggregate()
      Check if this metric applies to all classes (aggregate).
    • isConditional

      public boolean isConditional()
      Check if this metric has a conditioning event.
    • isTrace

      public boolean isTrace()
      Check if this metric is in trace format.
    • copy

      public <T extends Copyable> T copy()
      Description copied from interface: Copyable
      Creates a deep copy of this object using serialization.
      Specified by:
      copy in interface Copyable
      Returns:
      A deep copy of this object