Package smile.data.formula
Record Class Intercept
java.lang.Object
java.lang.Record
smile.data.formula.Intercept
- Record Components:
bias
- The flag if the model has the intercept.
- All Implemented Interfaces:
Serializable
,Term
The flag if intercept should be included in the model.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
bias()
Returns the value of thebias
record component.bind
(StructType schema) Binds the term to a schema.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.Returns the set of variables used in this term.
-
Constructor Details
-
Intercept
public Intercept(boolean bias) Creates an instance of aIntercept
record class.- Parameters:
bias
- the value for thebias
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. -
variables
Description copied from interface:Term
Returns the set of variables used in this term. -
bind
Description copied from interface:Term
Binds the term to a schema. -
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 '=='. -
bias
public boolean bias()Returns the value of thebias
record component.- Returns:
- the value of the
bias
record component
-