예제 #1
0
        public override void SetAllocState(AllocationStateCollection allocState)
        {
            double ratio = allocState.Loss / subjectLoss.TotalLoss;

            AllocatedLossSeries = subjectLoss;
            AllocatedLossSeries.AllocateRatio(ratio);
        }
예제 #2
0
        public void SetAllocState(AllocationStateCollection2 allocstate)
        {
            CurrentAllocationStateCollection = allocstate;
            AllocatedLossSeries = subjectLoss.Clone();
            double ratio;

            if (subjectLoss.TotalLoss > 0)
            {
                ratio = allocstate.GetPayout() / subjectLoss.TotalLoss;
                AllocatedLossSeries.AllocateRatio(ratio);
            }
        }