diff --git a/docs/reference/functions/alphabetical.md b/docs/reference/functions/alphabetical.md index 7df85cf42..f78c5a4e4 100644 --- a/docs/reference/functions/alphabetical.md +++ b/docs/reference/functions/alphabetical.md @@ -48,7 +48,6 @@ - [det(x)](det.md) - [diag(X)](diag.md) - [distance([x1, y1], [x2, y2])](distance.md) -- [distribution(name)](distribution.md) - [divide(x, y)](divide.md) - [dot(x, y)](dot.md) - [dotDivide(x, y)](dotDivide.md) diff --git a/docs/reference/functions/categorical.md b/docs/reference/functions/categorical.md index b4c813139..b939384ea 100644 --- a/docs/reference/functions/categorical.md +++ b/docs/reference/functions/categorical.md @@ -122,7 +122,6 @@ ## probability - [combinations(n, k)](combinations.md) -- [distribution(name)](distribution.md) - [factorial(n)](factorial.md) - [gamma(n)](gamma.md) - [kldivergence(x, y)](kldivergence.md) diff --git a/docs/reference/functions/distribution.md b/docs/reference/functions/distribution.md deleted file mode 100644 index 5f3e26075..000000000 --- a/docs/reference/functions/distribution.md +++ /dev/null @@ -1,41 +0,0 @@ -# Function distribution - -Create a distribution object with a set of random functions for given -random distribution. - - -## Syntax - -```js -math.distribution(name) -``` - -### Parameters - -Parameter | Type | Description ---------- | ---- | ----------- -`name` | string | Name of a distribution. Choose from 'uniform', 'normal'. - -### Returns - -Type | Description ----- | ----------- -Object | Returns a distribution object containing functions: `random([size] [, min] [, max])`, `randomInt([min] [, max])`, `pickRandom(array)` - - -## Examples - -```js -var normalDist = math.distribution('normal'); // create a normal distribution -normalDist.random(0, 10); // get a random value between 0 and 10 -``` - - -## See also - -[random](random.md), -[randomInt](randomInt.md), -[pickRandom](pickRandom.md) - - -