Package smile.util
Record Class AlgoStatus
java.lang.Object
java.lang.Record
smile.util.AlgoStatus
- Record Components:
iteration
- the iteration index.objective
- the objective function value.state
- optional algorithm state information.
Iterative algorithm status.
-
Constructor Summary
ConstructorsConstructorDescriptionAlgoStatus
(int iteration, double objective) Constructor.AlgoStatus
(int iteration, double objective, Object state) Creates an instance of aAlgoStatus
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theiteration
record component.double
Returns the value of theobjective
record component.state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AlgoStatus
public AlgoStatus(int iteration, double objective) Constructor.- Parameters:
iteration
- the iteration index.objective
- the objective function value.
-
AlgoStatus
Creates an instance of aAlgoStatus
record class.
-
-
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
public final int 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
iteration
public int iteration()Returns the value of theiteration
record component.- Returns:
- the value of the
iteration
record component
-
objective
public double objective()Returns the value of theobjective
record component.- Returns:
- the value of the
objective
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-