Example #1
0
        public SimpleLevelInfo(int[] _partitions, int size, int[] _factorsIndex)
        {
            Size         = size;
            Partitions   = _partitions;
            FactorsIndex = _factorsIndex;
            PatternInfoGenerator generator = new PatternInfoGenerator();

            PatternInfo        = generator.MakePatternInfo(PatternInfoType.Basic, _partitions, size);
            ApplyFactorPattern = generator.MakeFactorPatternInfo(_factorsIndex);
        }
        public DerivedCoverLevel(FunctionType _subjectFunctionType, FunctionType _payoutFunctionType, float[] _mixFunctionMultiplier, float[] _payoutMultiplier, int _numOfNodes, float[] _share,
                                 float[] _codedLim, float[] _codedAttPt, int[] _aggregationPartition, int[] _childrenMap, int[] _factorsIndex)
            : base(_payoutFunctionType, _payoutMultiplier, _numOfNodes, _share,
                   _codedLim, _codedAttPt, _aggregationPartition, _childrenMap, _factorsIndex)

        {
            subjectFunctionType   = _subjectFunctionType;
            payoutFunctionType    = _payoutFunctionType;
            mixFunctionMultiplier = _mixFunctionMultiplier;
            PayOutMultiplier      = _payoutMultiplier;
            FactorsIndex          = _factorsIndex;
            PatternInfoGenerator generator = new PatternInfoGenerator();

            ApplyFactorPattern = generator.MakeFactorPatternInfo(_factorsIndex);
        }
        public CoverLevel(FunctionType _payoutFunctionType, float[] _payoutMultiplier, int _numOfNodes, float[] _share, float[] _codedLim, float[] _codedAttPt,
                          int[] _aggregationPartition, int[] _childrenMap, int[] _factorsIndex, params int[] _leafTopCoverList)
        {
            levelsize             = _numOfNodes;
            Share                 = _share;
            CodedLimit            = _codedLim;
            CodedAttPt            = _codedAttPt;
            AggregationPartitions = _aggregationPartition;
            ChildrenMap           = _childrenMap;
            payoutFunctionType    = _payoutFunctionType;
            PayOutMultiplier      = _payoutMultiplier;
            leafTopCoverList      = _leafTopCoverList;
            FactorsIndex          = _factorsIndex;
            PatternInfoGenerator generator = new PatternInfoGenerator();

            ApplyFactorPattern = generator.MakeFactorPatternInfo(_factorsIndex);
        }
        public LowestCoverLevelInfo(int _numOfArites, int _numOfResidules, int[] _residuleSubAggPartitions, int[] _ariteAggPartitions, int[] _gulossIndices,
                                    int[] _recoverableLevelIndex, int[] _recoverableIndices, int[] _ariteGULossIndicies, int[] _leafCoveraRiteFactorsIndex, int[] _leafCoverResidualFactorsIndex)
        {
            NumOfArites                   = _numOfArites;
            NumOfResidules                = _numOfResidules;
            ResiduleSubAggPartitions      = _residuleSubAggPartitions;
            AriteAggPartitions            = _ariteAggPartitions;
            GULossIndices                 = _gulossIndices;
            RecoverableLevelIndex         = _recoverableLevelIndex;
            RecoverableIndices            = _recoverableIndices;
            LeafCoveraRiteFactorsIndex    = _leafCoveraRiteFactorsIndex;
            LeafCoverResidualFactorsIndex = _leafCoverResidualFactorsIndex;
            PatternInfoGenerator generator = new PatternInfoGenerator();

            ApplyFactorPatternForaRite        = generator.MakeFactorPatternInfo(_leafCoveraRiteFactorsIndex);
            ApplyFactorPatternForResidualRite = generator.MakeFactorPatternInfo(_leafCoverResidualFactorsIndex);
            AriteGULossIndices = _ariteGULossIndicies;
        }