Class MarketData
- java.lang.Object
-
- com.activeviam.risk.ref.services.impl.marketdataretrieval.AMarketDataset<double[],Double>
-
- com.activeviam.risk.ref.services.impl.marketdataretrieval.MarketData
-
- All Implemented Interfaces:
IMarketDataset<double[],Double>
public class MarketData extends AMarketDataset<double[],Double>
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]
dataSet
-
Fields inherited from class com.activeviam.risk.ref.services.impl.marketdataretrieval.AMarketDataset
debugString, pillars
-
-
Constructor Summary
Constructors Constructor Description MarketData(double[] dataSet, IMarketDataRetrievalService.IPillarSet[] pillars)
MarketData(IMarketDataRetrievalService.IPillarSet[] pillars)
MarketData(IMarketDataRetrievalService.IPillarSet[] pillars, boolean debug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
arrayFill(Double value)
Fill the array data with the value of pos in the input dataIMarketDataset<double[],Double>
createCompatibleDataset(IMarketDataRetrievalService.IPillarSet[] pillars, boolean debug)
Return a IMarketDataset of the same type of thisdouble[]
getData()
The underlying vectorDouble
getData(int idx)
Return an underlying valueint
getDataLength()
The size of the data vectorvoid
setData(int idx, Double value)
Set one data in the underlying vector-
Methods inherited from class com.activeviam.risk.ref.services.impl.marketdataretrieval.AMarketDataset
fillDebug, getDebug, getPillarSet, getPillarSets, getResultSize, setDebug
-
-
-
-
Constructor Detail
-
MarketData
public MarketData(IMarketDataRetrievalService.IPillarSet[] pillars)
-
MarketData
public MarketData(IMarketDataRetrievalService.IPillarSet[] pillars, boolean debug)
-
MarketData
public MarketData(double[] dataSet, IMarketDataRetrievalService.IPillarSet[] pillars)
-
-
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 creationdebug
- 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 indexvalue
- A single value
-
-