Record Class Dataset
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.moocore.Dataset
A matrix of objective vectors and the set identifier of each row.
-
Constructor Summary
ConstructorsConstructorDescriptionDataset(double[][] points, int[] sets) Creates an instance of aDatasetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[][]points()Returns the value of thepointsrecord component.int[]sets()Returns the value of thesetsrecord component.double[][]toMatrix()Return the dataset as a matrix whose final column contains set identifiers.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Dataset
public Dataset(double[][] points, int[] sets) Creates an instance of aDatasetrecord class.- Parameters:
points- the value for thepointsrecord componentsets- the value for thesetsrecord component
-
-
Method Details
-
points
public double[][] points()Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-
sets
public int[] sets()Returns the value of thesetsrecord component.- Returns:
- the value of the
setsrecord component
-
toMatrix
public double[][] toMatrix()Return the dataset as a matrix whose final column contains set identifiers. -
toString
-
hashCode
-
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 withObjects::equals(Object,Object).
-