Class MarketData

    • Field Detail

      • dataSet

        protected final double[] dataSet
    • Method Detail

      • getDataLength

        public int getDataLength()
        Description copied from interface: IMarketDataset
        The size of the data vector
        Returns:
        data length
      • createCompatibleDataset

        public IMarketDataset<double[],​Double> createCompatibleDataset​(IMarketDataRetrievalService.IPillarSet[] pillars,
                                                                             boolean debug)
        Description copied from interface: IMarketDataset
        Return a IMarketDataset of the same type of this
        Parameters:
        pillars - The pillars for the creation
        debug - Is the debug enabled
        Returns:
        A new fresh set
      • arrayFill

        public void arrayFill​(Double value)
        Description copied from interface: IMarketDataset
        Fill the array data with the value of pos in the input data
        Parameters:
        value - the input data to use in order to fill the result
      • getData

        public double[] getData()
        Description copied from interface: IMarketDataset
        The underlying vector
        Returns:
        double[] vector or IVector[] vector
      • getData

        public Double getData​(int idx)
        Description copied from interface: IMarketDataset
        Return an underlying value
        Parameters:
        idx - the position index
        Returns:
        A single value
      • setData

        public void setData​(int idx,
                            Double value)
        Description copied from interface: IMarketDataset
        Set one data in the underlying vector
        Parameters:
        idx - the position index
        value - A single value