Beispiel #1
0
        public PairwiseComparisonMatrix(double[,] matrix, IWeightsResolutionStrategy weightsResolutionStrategy, IReproachResolutionStrategy reproachResolutionStrategy)
            : base(matrix)
        {
            _weightsResolutionStrategy  = weightsResolutionStrategy;
            _reproachResolutionStrategy = reproachResolutionStrategy;

            if (_weightsResolutionStrategy != null)
            {
                _weights          = new Lazy <double[]>(() => _weightsResolutionStrategy.GetWeights(this));
                _consistencyIndex = new Lazy <double>(() => _weightsResolutionStrategy.GetConsistencyIndex(this));
            }
        }
Beispiel #2
0
 public PairwiseComparisonMatrix(double[,] matrix, IWeightsResolutionStrategy weightsResolutionStrategy)
     : this(matrix, weightsResolutionStrategy, null)
 {
     _weightsResolutionStrategy = weightsResolutionStrategy;
 }
 public TruncatedMatrixCiReproachResolutionStrategy(IWeightsResolutionStrategy weightsResolutionStrategy)
 {
     _weightsResolutionStrategy = weightsResolutionStrategy;
 }