Exemplo n.º 1
0
        private double calcVarianceForRun(double[] run, double[,] candidateMatrix)
        {
            ILArray <double> vector  = run;
            ILArray <double> matrix  = candidateMatrix;
            ILArray <double> inverse = ILMath.pinv(ILMath.multiply(matrix, matrix.T));

            return((double)ILMath.multiply(ILMath.multiply(vector.T, inverse), vector));
        }
Exemplo n.º 2
0
        private double calcVarianceFunction(double[] xi, double[] xj, double[,] matrix)
        {
            ILArray <double> xiIL     = xi;
            ILArray <double> xjIL     = xj;
            ILArray <double> matrixIL = matrix;
            ILArray <double> inverse  = ILMath.pinv(ILMath.multiply(matrixIL, matrixIL.T));

            return((double)ILMath.multiply(ILMath.multiply(xiIL.T, inverse), xjIL));
        }
Exemplo n.º 3
0
 protected static ILArray <double> inv(ILArray <double> ilArray)
 {
     return(ILMath.pinv(ilArray));
 }
Exemplo n.º 4
0
        private ILArray <double> calculateDispersion(double[,] matrix)
        {
            ILArray <double> tmp = matrix;

            return(ILMath.pinv(ILMath.multiply(tmp, tmp.T)));
        }