IDistributionCurve.SplitValueAccordingToCurve (Double, Int32, Double, Double, PeakCurveUnit) Method

Splits a value according to this distribution curve. Enables the use of Peak curves.
Function SplitValueAccordingToCurve( _ 
ByVal value As Double, _ 
ByVal periodsCount As Integer, _ 
ByVal firstPeriodPart As Double, _ 
ByVal endPeriodPart As Double, _ 
ByVal unit As PeakCurveUnit
) As Double()
This language is not supported or no code example is available.
double[] SplitValueAccordingToCurve( 
double value
int periodsCount
double firstPeriodPart
double endPeriodPart
PeakCurveUnit unit 
)
This language is not supported or no code example is available.

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

QdvApiException

A problem occurred.

Version
 
Available since QDV 7.18.676.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition