Provides mathematical, statistical, numerical, and interpolation functions.
Availability: ZPE 1.14.5 is the first version to support the Math module.
Module functions
The following is a list of all functions available in this module.
-
generate_histogram
[1.14.5+]
Splits numeric values into equal-width bins and returns objects containing each bin's low, high, and count values.
This functionality was originally available as a predefined function from ZPE 1.13.8, before it became a function of the Math module.
-
limit_number
[1.14.5+]
Forces a number to remain within the supplied minimum and maximum values.
-
linear_interpolation
[1.14.5+]
Returns the value linearly interpolated between a and b using t from 0 to 1.
This functionality was originally available as a predefined function from ZPE 1.13.8, before it became a function of the Math module.
-
maximum
[1.14.5+]
Returns the maximum of the supplied numbers or a single list.
This functionality was originally available as a predefined function from ZPE 1.3.1, before it became a function of the Math module.
-
mean
[1.14.5+]
Calculates the arithmetic mean of the supplied numbers or a single list.
This functionality was originally available as a predefined function from ZPE 1.3.1, before it became a function of the Math module.
-
median
[1.14.5+]
Calculates the median of the supplied numbers or a single list.
This functionality was originally available as a predefined function from ZPE 1.3.1, before it became a function of the Math module.
-
minimum
[1.14.5+]
Returns the minimum of the supplied numbers or a single list.
This functionality was originally available as a predefined function from ZPE 1.3.1, before it became a function of the Math module.
-
mode
[1.14.5+]
Calculates the mode of the supplied numbers or a single list.
This functionality was originally available as a predefined function from ZPE 1.3.1, before it became a function of the Math module.
-
percentile
[1.14.5+]
Returns the requested percentile from a numeric list.
This functionality was originally available as a predefined function from ZPE 1.13.8, before it became a function of the Math module.
-
random_number
[1.14.5+]
Generates a random number between the supplied minimum and maximum values.
This functionality was originally available as a predefined function from ZPE 1.3.0, before it became a function of the Math module.
-
range
[1.14.5+]
Generates a list of numbers in a range. The optional third parameter can specify an increment or whether the range is inclusive.
This functionality was originally available as a predefined function from ZPE 1.3.1, before it became a function of the Math module.
-
standard_deviation
[1.14.5+]
Calculates the population standard deviation of a numeric list.
This functionality was originally available as a predefined function from ZPE 1.13.8, before it became a function of the Math module.

There are no comments on this page.
Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days. Your email address is stored so that replies can be sent to your email address.
Comments powered by BalfComment