Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

dist

Computes an approximation of the distribution of data values.

dist(Y,nbins,nParameters)

Returns a function which approximates the distribution of the data values in Y. For that Y is binned into nbins equally spaced containers. The approximation uses nParameters parameters to describe the data.

Argument Y

Matrix

Argument nbins

Scalar

Argument nParameters

Scalar

Returns 1. entry

Function

Example

dist([randn(500, 1); randn(1000, 1) + 5], 40, 10)

Returns an approximate of the distribution of the data (two gaussians centered at 0 and 5 and relative height 1:2) binned in 40 bins and with 10 parameters.

dist(Y)

Returns a function which approximates the distribution of the data values in Y. For that Y is binned into nbins equally spaced containers. The approximation uses nParameters parameters to describe the data.

Argument Y

Matrix

Returns 1. entry

Function

Example

dist([randn(500, 1); randn(1000, 1) + 5])

Returns an approximate of the distribution of the data (two gaussians centered at 0 and 5 and relative height 1:2) binned in about sqrt(1500) bins and about log(1500) parameters.

Clone this wiki locally