Package org.uma.jmetal.util.point.impl
Class ArrayPoint
java.lang.Object
org.uma.jmetal.util.point.impl.ArrayPoint
- All Implemented Interfaces:
Point
- Direct Known Subclasses:
IdealPoint,NadirPoint
Class representing a point (i.e, an array of double values)
- Author:
- Antonio J. Nebro
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorArrayPoint(double[] point) Constructor from an array of double valuesArrayPoint(int dimension) ConstructorArrayPoint(String fileName) Constructor reading the values from a fileArrayPoint(Point point) Copy constructor -
Method Summary
-
Field Details
-
point
protected double[] point
-
-
Constructor Details
-
ArrayPoint
public ArrayPoint()Default constructor -
ArrayPoint
public ArrayPoint(int dimension) Constructor- Parameters:
dimension- Dimension of the point
-
ArrayPoint
Copy constructor- Parameters:
point-
-
ArrayPoint
public ArrayPoint(double[] point) Constructor from an array of double values- Parameters:
point-
-
ArrayPoint
Constructor reading the values from a file- Parameters:
fileName-- Throws:
IOException
-
-
Method Details
-
dimension
public int dimension() -
values
public double[] values() -
value
public double value(int index) -
value
public void value(int index, double value) -
update
public void update(double[] point) -
set
public void set(double[] point) -
toString
-
equals
-
hashCode
public int hashCode()
-