Class Vectornd


  • public class Vectornd
    extends java.lang.Object
    N dimension vector class with the cost value.
    Author:
    wangh3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double cost
      Cost value
      private double[] point
      N-dimension vector
    • Constructor Summary

      Constructors 
      Constructor Description
      Vectornd()  
      Vectornd​(double[] pt)  
      Vectornd​(double[] pt, boolean copy)  
      Vectornd​(double[] pt, double cost)  
      Vectornd​(double[] pt, double cost, boolean copy)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double get​(int index)  
      double getCost()  
      int getDimension()  
      double[] getPoint()  
      void set​(int index, double value)  
      void setCost​(double cost)  
      void setPoint​(double[] point)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • point

        private double[] point
        N-dimension vector
      • cost

        private double cost
        Cost value
    • Constructor Detail

      • Vectornd

        public Vectornd()
      • Vectornd

        public Vectornd​(double[] pt)
      • Vectornd

        public Vectornd​(double[] pt,
                        double cost)
      • Vectornd

        public Vectornd​(double[] pt,
                        boolean copy)
      • Vectornd

        public Vectornd​(double[] pt,
                        double cost,
                        boolean copy)
    • Method Detail

      • get

        public double get​(int index)
      • getCost

        public double getCost()
      • setCost

        public void setCost​(double cost)
      • getPoint

        public double[] getPoint()
      • setPoint

        public void setPoint​(double[] point)
      • getDimension

        public int getDimension()
      • set

        public void set​(int index,
                        double value)