package bimage
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module type TYPE = sig ... end
val of_kind : ('a, 'b) Stdlib.Bigarray.kind -> ('a, 'b) t
val kind : ('a, 'b) t -> ('a, 'b) Stdlib.Bigarray.kind
Get Bigarray kind
val name : ('a, 'b) t -> string
name k
returns the name of a given ty
val depth : ('a, 'b) t -> int
returns the number of bits for a given ty
val max : ('a, 'b) t -> 'a
max k
returns the maximum normalized value for k
val min : ('a, 'b) t -> 'a
min k
returns the minimum normalized value for k
val max_f : ('a, 'b) t -> float
max k
returns the maximum normalized value for k
as a float
val min_f : ('a, 'b) t -> float
min k
returns the minimum normalized value for k
as a float
val to_float : ('a, 'b) t -> 'a -> float
to_float k x
converts a value of type k
to float
val of_float : ('a, 'b) t -> float -> 'a
of_float k x
converts a float to a value of ty k
val clamp : ('a, 'b) t -> float -> float
Converts a float value to a value within the proper range for the given type
val normalize : ('a, 'b) t -> float -> float
Scales a value to the range 0.0-1.0
val denormalize : ('a, 'b) t -> float -> float
Sclaes a value to the range (type_min-type_max)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>