CRP Toolbox Reference

trafo

Purpose

Transforms data to a desired distribution.

Syntax

    y=trafo(x,a)

Description

y=trafo(x,a) transforms the data in vector x to data y of a desired distribution, where
    a=0 normal distribution (default),
    a=1 uniform distribution,
    a=2 exponential distribution

Example

    x=rand(5000,1);
    subplot(2,1,1), hist(x,20) % uniformly distributed
    y=trafo(x,0);
    subplot(2,1,2), hist(y,20) % normally distributed


trackplot tt