Esempio n. 1
0
        public new SampleMatrix GetRow(int index)
        {
            SampleMatrix r = new SampleMatrix(1, this.Columns);

            r.m_name       = this.m_name;
            r.m_colNames   = this.m_colNames;
            r.baseArray[0] = this.baseArray[index];
            return(r);
        }
Esempio n. 2
0
        internal static SampleMatrix ZScores(SampleMatrix value, double[] mean, double[] stdDev)
        {
            SampleMatrix m = value.Clone();

            Center(m, mean);
            Standardize(m, stdDev);

            return(m);
        }
Esempio n. 3
0
 public new SampleMatrix GetRow(int index)
 {
     SampleMatrix r = new SampleMatrix(1, this.Columns);
     r.m_name = this.m_name;
     r.m_colNames = this.m_colNames;
     r.baseArray[0] = this.baseArray[index];
     return r;
 }
Esempio n. 4
0
 /// <summary>Copy constructor for SampleMatrix.</summary>
 /// <param name="matrix">The matrix to be copied.</param>
 public SampleMatrix(SampleMatrix data)
     : base((Matrix)data)
 {
     this.m_colNames = data.m_colNames;
     this.m_name = data.m_name;
 }
Esempio n. 5
0
 /// <summary>Copy constructor for SampleMatrix.</summary>
 /// <param name="matrix">The matrix to be copied.</param>
 public SampleMatrix(SampleMatrix data)
     : base((Matrix)data)
 {
     this.m_colNames = data.m_colNames;
     this.m_name     = data.m_name;
 }
Esempio n. 6
0
        internal static SampleMatrix ZScores(SampleMatrix value, double[] mean, double[] stdDev)
        {
            SampleMatrix m = value.Clone();

            Center(m, mean);
            Standardize(m, stdDev);

            return m;
        }
Esempio n. 7
0
 /// <summary>Generates the Standard Scores, also known as Z-Scores, the core from the given data.</summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static SampleMatrix ZScores(SampleMatrix value)
 {
     double[] mean = Mean(value);
     return ZScores(value, mean, StandardDeviation(value, mean));
 }
Esempio n. 8
0
 /// <summary>Generates the Standard Scores, also known as Z-Scores, the core from the given data.</summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static SampleMatrix ZScores(SampleMatrix value)
 {
     double[] mean = Mean(value);
     return(ZScores(value, mean, StandardDeviation(value, mean)));
 }