Get all masked data into a vector.
int GetMaskedData( DWORD dwRules, int nIndex, vector<int> * pvintRows, vector * pv, vector * pvIndep = NULL, matrix * pmMultiIndep = NULL, vector * pvWeights = NULL, vector * pvYIndep = NULL )
EX1
// This example assumes 1 or more columns of data with some values masked. //Get the data and only masked data from datarange. void DataRange_GetMaskedData_Ex1(int nXColStart = 0, int nXColEnd = 1) { Worksheet wks = Project.ActiveLayer(); if( wks ) { DataRange dr; dr.Add("X", wks, 0, nXColStart, -1, nXColEnd); vector vX, vMaskedValues; vector<int> vRowsWithMaskedValues; DWORD dwPlotID; //Get data(not masked in the datarange. int ii = dr.GetData(DRR_COMBINED_SIMPLE | DRR_GET_MISSING | DRR_NO_FACTORS, 0, &dwPlotID, NULL, &vX); //Get masked data in the datarange. int jj = dr.GetMaskedData(DRR_COMBINED_SIMPLE | DRR_NO_FACTORS, 0, &vRowsWithMaskedValues, &vMaskedValues); } }
DataRange::GetNumData, DataRange::GetData, DataRange::SetData, Curve::Curve, curvebase::AttachX, DataRange::GetMissingData
origin.h