categorical_ndarray

class glue.utils.array.categorical_ndarray[source]

Bases: numpy.ndarray

A Numpy array subclass that includes properties to find the categories and unique integer codes for array values.

Attributes Summary

categories

codes

Methods Summary

jitter(self[, method])

Jitter the codes.

Attributes Documentation

categories
codes

Methods Documentation

jitter(self, method=None)[source]

Jitter the codes.

Parameters
method{None, ‘uniform’}

If None, not jittering is done (or any jittering is undone). If 'uniform', the codes are randomized by a uniformly distributed random variable.