Package jline.inference.lang
Class SampledMetric
java.lang.Object
jline.inference.lang.SampledMetric
- All Implemented Interfaces:
Serializable,Copyable
Observed data for a metric.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSampledMetric(MetricType type, double[] t, double[] data, Node node) SampledMetric(MetricType type, double[] t, double[] data, Node node, JobClass jobClass) -
Method Summary
Modifier and TypeMethodDescription<T extends Copyable>
Tcopy()Creates a deep copy of this object using serialization.getCond()double[]getData()getNode()double[]getT()getType()booleanCheck if this metric applies to all classes (aggregate).booleanCheck if this metric has a conditioning event.booleanisTrace()Check if this metric is in trace format.voidsetConditional(ConditionEvent event) Set a conditioning event on this metric.voidsetData(double[] data) voidsetT(double[] t) voidsetTrace()Switch the data format to trace (per-request).
-
Field Details
-
type
-
t
public double[] t -
data
public double[] data -
node
-
jobClass
-
cond
-
-
Constructor Details
-
SampledMetric
-
SampledMetric
-
-
Method Details
-
getType
-
getT
public double[] getT() -
setT
public void setT(double[] t) -
getData
public double[] getData() -
setData
public void setData(double[] data) -
getNode
-
getJobClass
-
getCond
-
getFormat
-
setConditional
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
Description copied from interface:CopyableCreates a deep copy of this object using serialization.
-