Class DataPoint


  • public class DataPoint
    extends java.lang.Object
    Author:
    Bhagat A data points holding the inputs and target into one object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double[] inputs
      the inputs
      private double[] outputs
      the outputs
    • Constructor Summary

      Constructors 
      Constructor Description
      DataPoint​(double[] inputs, double[] outputs)
      creates a data points using inputs and a target
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double[] getInputs()  
      double[] getOutputs()  
      void setInputs​(double[] inputs)  
      void setOutputs​(double[] outputs)  
      java.lang.String toString()
      string representation of the data points
      • Methods inherited from class java.lang.Object

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

      • inputs

        private double[] inputs
        the inputs
      • outputs

        private double[] outputs
        the outputs
    • Constructor Detail

      • DataPoint

        public DataPoint​(double[] inputs,
                         double[] outputs)
        creates a data points using inputs and a target
        Parameters:
        inputs - the inputs
        outputs - the outputs
    • Method Detail

      • getInputs

        public double[] getInputs()
        Returns:
        the inputs
      • setInputs

        public void setInputs​(double[] inputs)
        Parameters:
        inputs - the inputs to set
      • getOutputs

        public double[] getOutputs()
        Returns:
        the outputs
      • setOutputs

        public void setOutputs​(double[] outputs)
        Parameters:
        outputs - the outputs to set
      • toString

        public java.lang.String toString()
        string representation of the data points
        Overrides:
        toString in class java.lang.Object