div
div(value=0, axis=none, dims=none, p=1.0)
Division operation.
When value is a statistic (e.g., mean, std), the axis along which it is computed is determined by axis, and its always relative to the input data before any operations.
A list of one or more indices can be specified via dims, to apply the operation to specific features, and the probability of the operation being applied to the data can be set with p.
Arguments
-
value (
float|int|str): A numeric constant, or one of the following input-dependent, statistical properties.mean: arithmetic mean alongaxis.std: standard deviation alongaxis.
Default:
0 -
axis (
str|none): Reduction axis for data-derived values. Ignored whenvalueis a constant:none: data-derived value is based on all dimensions and time steps.time: data-derived value is computed along the time-step dimension.feature: data-derived value is computed for each step along the feature dimension.
Default:
none -
dims (
int|list[int]|none): Feature dimensions to apply operation to. Ifnone, all feature dimensions are used.Default:
none -
p (
float): Probability for operation to be applied to data sequence, between 0 and 1.Default:
1.0