Record Class DataTransformHelper.RegressionValues
java.lang.Object
java.lang.Record
net.simplace.sim.components.util.helper.DataTransformHelper.RegressionValues
- Enclosing class:
- DataTransformHelper
public static record DataTransformHelper.RegressionValues(double m, double b, double meanX, double meanY, double rSquared)
extends Record
-
Constructor Summary
ConstructorDescriptionRegressionValues
(double m, double b, double meanX, double meanY, double rSquared) Creates an instance of aRegressionValues
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
b()
Returns the value of theb
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
m()
Returns the value of them
record component.double
meanX()
Returns the value of themeanX
record component.double
meanY()
Returns the value of themeanY
record component.double
rSquared()
Returns the value of therSquared
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RegressionValues
public RegressionValues(double m, double b, double meanX, double meanY, double rSquared) Creates an instance of aRegressionValues
record class.- Parameters:
m
- the value for them
record componentb
- the value for theb
record componentmeanX
- the value for themeanX
record componentmeanY
- the value for themeanY
record componentrSquared
- the value for therSquared
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
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. All components in this record class are compared with '=='. -
m
public double m()Returns the value of them
record component.- Returns:
- the value of the
m
record component
-
b
public double b()Returns the value of theb
record component.- Returns:
- the value of the
b
record component
-
meanX
public double meanX()Returns the value of themeanX
record component.- Returns:
- the value of the
meanX
record component
-
meanY
public double meanY()Returns the value of themeanY
record component.- Returns:
- the value of the
meanY
record component
-
rSquared
public double rSquared()Returns the value of therSquared
record component.- Returns:
- the value of the
rSquared
record component
-