Record Class AnomalyDetector.Anomaly
java.lang.Object
java.lang.Record
com.quantfinlib.ml.AnomalyDetector.Anomaly
- Enclosing class:
AnomalyDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theintervalIndexrecord component.doublescore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Anomaly
Creates an instance of aAnomalyrecord class.- Parameters:
intervalIndex- the value for theintervalIndexrecord componenttype- the value for thetyperecord componentscore- the value for thescorerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
intervalIndex
public int intervalIndex()Returns the value of theintervalIndexrecord component.- Returns:
- the value of the
intervalIndexrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
score
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-