Class PopulationVector

All Implemented Interfaces:
Serializable, Cloneable, Comparable<EnhancedVector>, Iterable<Integer>, Collection<Integer>, List<Integer>, RandomAccess, SequencedCollection<Integer>

public class PopulationVector extends EnhancedVector
This class implements the PopulationVector object, which is used to store a populations vector. It extends an EnhancedVector object.
Author:
Michail Makaronidis, 2010
See Also:
  • Constructor Details

    • PopulationVector

      public PopulationVector()
      Creates an empty PopulationVector object.
    • PopulationVector

      public PopulationVector(Integer[] P)
      Creates an PopulationVector with content equal to the given matrix.
      Parameters:
      P - The matrix containing the vector elements
    • PopulationVector

      public PopulationVector(int[] P)
      Creates an PopulationVector with content equal to the given matrix.
      Parameters:
      P - The matrix containing the vector elements
    • PopulationVector

      public PopulationVector(int k, int length)
      Creates a new PopulationVector of specific lenth, where all elements are equal to a specific value.
      Parameters:
      k - The value of all elements
      length - The length of the PopulationVector
  • Method Details