Class: Categorical

Categorical(categories)

new Categorical(categories)

Dimension of categorical type. Values of the dimension can be a mix of integer, float, string and boolean values (tested) as well as it is expected that other javascript types should work.
Parameters:
Name Type Description
categories Array A set of all feasible values for the dimension. For example, it could be ['a', 1, 2.0, 'zazz', true].
Source:

Methods

random_sample() → {Number}

Generate random uniformly distributed integer sample from dimension space.
Source:
Returns:
Sample value.
Type
Number