java.lang.Object
java.lang.Record
io.jenetics.prog.regression.Sampling.Result<T>
- Type Parameters:
T
- the sample result type
This class represents the result of a sample calculation, which contains
the array of calculated values and a corresponding array with expected
sample values. This two arrays can then be used for calculating the
error between modeled regression function and actual sample values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionT[]
Returns the value of thecalculated
record component.final boolean
Indicates whether some other object is "equal to" this one.T[]
expected()
Returns the value of theexpected
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResult
record class.- Parameters:
calculated
- the value for thecalculated
record componentexpected
- the value for theexpected
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
calculated
Returns the value of thecalculated
record component.- Returns:
- the value of the
calculated
record component
-
expected
Returns the value of theexpected
record component.- Returns:
- the value of the
expected
record component
-