コード例 #1
0
        public override DataRecord <double> Clone()
        {
            RDataRecord clone = new RDataRecord(mFeatureNum);

            clone.Copy(this);
            return(clone);
        }
コード例 #2
0
        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;
        }