public override void SetAllocState(AllocationStateCollection allocState) { double ratio = allocState.Loss / subjectLoss.TotalLoss; AllocatedLossSeries = subjectLoss; AllocatedLossSeries.AllocateRatio(ratio); }
public void SetAllocState(AllocationStateCollection2 allocstate) { CurrentAllocationStateCollection = allocstate; AllocatedLossSeries = subjectLoss.Clone(); double ratio; if (subjectLoss.TotalLoss > 0) { ratio = allocstate.GetPayout() / subjectLoss.TotalLoss; AllocatedLossSeries.AllocateRatio(ratio); } }