Class TimeSeriesInstance

    • Constructor Detail

      • TimeSeriesInstance

        public TimeSeriesInstance​(INDArrayTimeseries[] attributeValues,
                                  java.lang.Object targetValue)
        Constructor.
        Parameters:
        dataset -
        attributeValues -
        targetValue -
      • TimeSeriesInstance

        public TimeSeriesInstance​(java.util.List<INDArrayTimeseries> attributeValues,
                                  java.lang.Object targetValue)
    • Method Detail

      • getAttributeValue

        public INDArrayTimeseries getAttributeValue​(int pos)
        Specified by:
        getAttributeValue in interface org.api4.java.ai.ml.core.dataset.IInstance
      • getLabel

        public java.lang.Object getLabel()
        Specified by:
        getLabel in interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
      • getPoint

        public double[] getPoint()
        Specified by:
        getPoint in interface org.apache.commons.math3.ml.clustering.Clusterable
        Specified by:
        getPoint in interface org.api4.java.ai.ml.core.dataset.IInstance
      • getAttributes

        public java.lang.Object[] getAttributes()
        Specified by:
        getAttributes in interface org.api4.java.ai.ml.core.dataset.IInstance
      • removeColumn

        public void removeColumn​(int columnPos)
        Specified by:
        removeColumn in interface org.api4.java.ai.ml.core.dataset.IInstance
      • getPointValue

        public double getPointValue​(int pos)
        Specified by:
        getPointValue in interface org.api4.java.ai.ml.core.dataset.IInstance
      • setLabel

        public void setLabel​(java.lang.Object label)
        Specified by:
        setLabel in interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
      • setAttributeValue

        public void setAttributeValue​(int pos,
                                      java.lang.Object value)
        Specified by:
        setAttributeValue in interface org.api4.java.ai.ml.core.dataset.IInstance
        Specified by:
        setAttributeValue in interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
      • isLabelPresent

        public boolean isLabelPresent()
        Specified by:
        isLabelPresent in interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance