public override DataRecord <double> Clone() { RDataRecord clone = new RDataRecord(mFeatureNum); clone.Copy(this); return(clone); }
public override void Copy(DataRecord <double> rhs) { base.Copy(rhs); RDataRecord rhs2 = rhs as RDataRecord; mYValue = rhs2.mYValue; mPredictedYValue = rhs2.mPredictedYValue; mData = (double[])rhs2.mData.Clone(); mIsCategorical = (bool[])rhs2.mIsCategorical.Clone(); mFeatureNum = rhs2.mFeatureNum; }