Class TargetHelper
Assembly: SoDataBase.dll
Syntax
public static class TargetHelper
Methods
BucketValues(double[], int)
Aggregates the values in input-collection.
Declaration
public static double[] BucketValues(double[] values, int bucketSize)
Parameters
Type |
Name |
Description |
double[] |
values |
|
int |
bucketSize |
How many values are aggregated together in the input-collection.
|
Returns
ConvertNumberToPeriodType(int)
Declaration
public static TargetPeriodType ConvertNumberToPeriodType(int number)
Parameters
Type |
Name |
Description |
int |
number |
|
Returns
ConvertPeriodTypeToNumber(TargetPeriodType)
Declaration
public static int ConvertPeriodTypeToNumber(TargetPeriodType periodType)
Parameters
Returns
GetDefaultPeriodType()
Declaration
public static TargetPeriodType GetDefaultPeriodType()
Returns
GetDefaultValues(TargetPeriodType)
Declaration
public static double[] GetDefaultValues(TargetPeriodType tpt)
Parameters
Returns
GetDefaultValues(int)
Declaration
public static double[] GetDefaultValues(int count)
Parameters
Type |
Name |
Description |
int |
count |
|
Returns
SpreadValues(double[], int)
Divides each value into several new values. Rounds up to nearest whole if value is positive, rounds down if value is negative.
Declaration
public static double[] SpreadValues(double[] values, int spreadSize)
Parameters
Type |
Name |
Description |
double[] |
values |
|
int |
spreadSize |
The amount of new values each value in input-collection is divided into.
|
Returns
TargetPeriod(DateTime, TargetPeriodType)
Declaration
public static int TargetPeriod(this DateTime date, TargetPeriodType periodType)
Parameters
Returns