Logo GenPRES

Frequency Module

Wraps an order variable as a frequency, with the name part frq, and applies the order variable functions to it.

Functions and values

Function or value Description

apply f

Full Usage: apply f

Parameters:
Returns: Frequency -> Frequency

Apply a function to the OrderVariable in a Frequency

f : OrderVariable -> OrderVariable
Returns: Frequency -> Frequency

applyConstraints

Full Usage: applyConstraints

Returns: Frequency -> Frequency

Apply the constraints of a Frequency to the OrderVariable Variable

Returns: Frequency -> Frequency

create n tu

Full Usage: create n tu

Parameters:
    n : Name - The Name of the Frequency
    tu : Unit - The Time Unit of the Frequency

Returns: Frequency

Create a Frequency

n : Name

The Name of the Frequency

tu : Unit

The Time Unit of the Frequency

Returns: Frequency

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Frequency

Create a Frequency from a Dto

dto : Dto
Returns: Frequency

fromOrdVar

Full Usage: fromOrdVar

Returns: OrderVariable list -> Frequency -> Frequency

Replaces a Frequency with the OrderVariable of the same name from a list, when the list has one.

Returns: OrderVariable list -> Frequency -> Frequency

hasConstraints

Full Usage: hasConstraints

Returns: Frequency -> bool

Check whether a Frequency has Constraints that are not non-zero positive and not empty

Returns: Frequency -> bool

isNonZeroPositive

Full Usage: isNonZeroPositive

Returns: Frequency -> bool

Check whether a Frequency is non-zero positive

Returns: Frequency -> bool

isSolved

Full Usage: isSolved

Returns: Frequency -> bool

Check whether a Frequency is solved

Returns: Frequency -> bool

isWithinConstraints useCalc

Full Usage: isWithinConstraints useCalc

Parameters:
    useCalc : bool

Returns: Frequency -> bool

Check whether a Frequency is within its constraints

useCalc : bool
Returns: Frequency -> bool

name

Full Usage: name

Returns: string
Returns: string

setMaxValue

Full Usage: setMaxValue

Returns: Frequency -> Frequency

Set the Values of the Variable of a Frequency to the maximum value

Returns: Frequency -> Frequency

setMedianValue

Full Usage: setMedianValue

Returns: Frequency -> Frequency

Set the Values of the Variable of a Frequency to the median value

Returns: Frequency -> Frequency

setMinValue

Full Usage: setMinValue

Returns: Frequency -> Frequency

Set the Values of the Variable of a Frequency to the minimum value

Returns: Frequency -> Frequency

setNthValue nth

Full Usage: setNthValue nth

Parameters:
    nth : int

Returns: Frequency -> Frequency

Sets the values to the nth value, counted from 0, but not above the maximum.

nth : int
Returns: Frequency -> Frequency

setPercValue nth

Full Usage: setPercValue nth

Parameters:
    nth : int

Returns: Frequency -> Frequency

Sets the values to the value at nth percent of the way through all values.

nth : int
Returns: Frequency -> Frequency

setToNonZeroPositive

Full Usage: setToNonZeroPositive

Returns: Frequency -> Frequency

Set a Frequency to non-zero positive values

Returns: Frequency -> Frequency

toDto

Full Usage: toDto

Returns: Frequency -> Dto

Create a Dto for a Frequency

Returns: Frequency -> Dto

toOrdVar arg1

Full Usage: toOrdVar arg1

Parameters:
Returns: OrderVariable

Get the OrderVariable in a Frequency

arg0 : Frequency
Returns: OrderVariable

toString

Full Usage: toString

Returns: Frequency -> string

Turn a Frequency to a string

Returns: Frequency -> string

toStringWithConstraints

Full Usage: toStringWithConstraints

Returns: Frequency -> string

Get a string representation of a Frequency (including constraints)

Returns: Frequency -> string

toValueUnitMarkdown

Full Usage: toValueUnitMarkdown

Returns: int -> Frequency -> string

Get a ValueUnit Markdown representation of a Frequency

Returns: int -> Frequency -> string

toValueUnitString

Full Usage: toValueUnitString

Returns: int -> Frequency -> string

Get a ValueUnit string representation of a Frequency

Returns: int -> Frequency -> string

toValueUnitStringList

Full Usage: toValueUnitStringList

Returns: Frequency -> string option

Gets the value set of a Frequency as a Dutch string; None without a value set.

Returns: Frequency -> string option

Type something to start searching.