Interval Module
Functions and values
| Function or value | Description | ||
|
|||
Full Usage:
createClosedOfSize min size
Parameters:
^a
-
The start value of the interval
size : ^b
-
The size of the interval
Returns: Interval<^a>
A closed interval
Modifiers: inline Type parameters: ^a, ^b |
Example
|
||
Full Usage:
createLeftOpenOfSize min size
Parameters:
^a
-
The start value of the interval
size : ^b
-
The size of the interval
Returns: Interval<^a>
A left-open interval if size is non-zero, otherwise an empty interval
Modifiers: inline Type parameters: ^a, ^b |
Example
|
||
Full Usage:
createOpenOfSize min size
Parameters:
^a
-
The start value of the interval
size : ^b
-
The size of the interval
Returns: Interval<^a>
An open interval if size is non-zero, otherwise an empty interval
Modifiers: inline Type parameters: ^a, ^b |
Example
|
||
Full Usage:
createRightOpenOfSize min size
Parameters:
^a
-
The start value of the interval
size : ^b
-
The size of the interval
Returns: Interval<^a>
A right-open interval if size is non-zero, otherwise an empty interval
Modifiers: inline Type parameters: ^a, ^b |
Example
|
||
Full Usage:
getEnd interval
Parameters:
Interval<'a>
-
The input interval
Returns: 'a
The end value of the interval
Modifiers: inline Type parameters: 'a |
Example
val interval: obj
|
||
Full Usage:
getSize interval
Parameters:
Interval<^a>
-
The input interval
Returns: 'b
The size of the interval
Modifiers: inline Type parameters: ^a, 'b, ^c |
Example
val interval: obj
|
||
Full Usage:
getSizeBy projection interval
Parameters:
'a -> ^b
-
A function to project the interval values to the desired type
interval : Interval<'a>
-
The input interval
Returns: 'a0
The size of the projected interval
Modifiers: inline Type parameters: 'a, ^b, 'a |
Example
val interval: obj
Multiple items
val int: value: 'T -> int (requires member op_Explicit) -------------------- type int = int32 -------------------- type int<'Measure> = int |
||
Full Usage:
getStart interval
Parameters:
Interval<'a>
-
The input interval
Returns: 'a
The start value of the interval
Modifiers: inline Type parameters: 'a |
Example
val interval: obj
|
||
Full Usage:
getValueAt proportion interval
Parameters:
^a
-
The proportion (0.0 - 1.0 inside, < 0.0 or > 1.0 outside)
interval : Interval<^d>
-
The input interval
Returns: 'e
The value at the given proportion, or NaN if the interval is empty
Modifiers: inline Type parameters: ^a, ^b, ^c, ^d, 'e, ^f, ^g |
Example
val interval: obj
|
||
|
Example
val interval1: obj
val interval2: obj
|
||
|
Example
val interval1: obj
val interval2: obj
|
||
|
|
||
Full Usage:
trySize interval
Parameters:
Interval<^a>
-
The input interval
Returns: 'b option
An option containing the size of the interval, or None if the interval is empty
Modifiers: inline Type parameters: ^a, 'b |
Example
val interval: obj
|
||
Full Usage:
values interval
Parameters:
Interval<'a>
-
The input interval
Returns: 'a * 'a
A tuple of the start and end values
Modifiers: inline Type parameters: 'a |
Example
val interval: obj
|
FSharp.Stats