Record Class TrendAndTechnologyFunctions.RegressionCoefficients
java.lang.Object
java.lang.Record
net.simplace.sim.components.models.lintulfast.TrendAndTechnologyFunctions.RegressionCoefficients
- Enclosing class:
- TrendAndTechnologyFunctions
public static record TrendAndTechnologyFunctions.RegressionCoefficients(double m, double b)
extends Record
-
Constructor Summary
ConstructorDescriptionRegressionCoefficients
(double m, double b) Creates an instance of aRegressionCoefficients
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.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RegressionCoefficients
public RegressionCoefficients(double m, double b) Creates an instance of aRegressionCoefficients
record class.- Parameters:
m
- the value for them
record componentb
- the value for theb
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
-