Пример #1
0
        private double[] GetVariableMeans(ISpace <T> space)
        {
            var means = new double[space.Variables];

            for (var i = 0; i < space.Variables; ++i)
            {
                means[i] = _provider.GetMeanOfValues(space.GetVariableValues(i));
            }

            return(means);
        }
Пример #2
0
        private ISpace <T> GetInverseCorrelationSpace(ISpace <T> space)
        {
            var temp = new T[space.Variables, space.Variables];

            for (var i = 0; i < space.Variables; i++)
            {
                for (var j = 0; j < space.Variables; j++)
                {
                    temp[i, j] = _provider.GetCorrelation(space.GetVariableValues(i), space.GetVariableValues(j));
                }
            }
            var inverseSpace = _provider.GetInverseSpace(_factory.CreateSpaceFromArray(temp));

            return(inverseSpace);
        }