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
ConstructorsConstructorDescriptionRegressionCoefficients(double m, double b) Creates an instance of aRegressionCoefficientsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleb()Returns the value of thebrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublem()Returns the value of themrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegressionCoefficients
public RegressionCoefficients(double m, double b) Creates an instance of aRegressionCoefficientsrecord class.- Parameters:
m- the value for themrecord componentb- the value for thebrecord 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 themrecord component.- Returns:
- the value of the
mrecord component
-
b
public double b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-