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) Bigarray.kind -> ('a, 'b) t
val kind : ('a, 'b) t -> ('a, 'b) 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)
type u8 = Bigarray.int8_unsigned_elt
type u16 = Bigarray.int16_unsigned_elt
type i32 = Bigarray.int32_elt
type i64 = Bigarray.int64_elt
type f32 = Bigarray.float32_elt
type f64 = Bigarray.float64_elt
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>