IDistributionCurve.SplitValueAccordingToCurve (Double, Int32, Double, Double, PeakCurveUnit) Method
Parameters
- value
- double
The value to be split.
- periodsCount
- int
The number of periods to be retrieved. Minimum is 1, maximum is 1000.
- firstPeriodPart
- double
A value between 0 and 1 which lets you start anywhere in the first period. 1 means start at the first second of the first day of the first period, 0 means nothing in the first period.
- endPeriodPart
- double
A value between 0 and 1 which lets you end anywhere in the last period. 1 means the last second of the last day of the last period, 0 means nothing in the last period.
- unit
- PeakCurveUnit
The units of the returned array (Day, Week, Month, Quarter, Quadrimester, Semester, Year or Decade). This is used for Peak curves because peak curves have their own period unit defined, so they need to know which period expected in return.
Return Value
double[]An array of split values, having as many entries as periodsCount .
Exception type | Condition |
---|---|
A problem occurred. |