mvpa2.testing.datasets.linear_awgn

mvpa2.testing.datasets.linear_awgn(size=10, intercept=0.0, slope=0.4, noise_std=0.01, flat=False)

Generate a dataset from a linear function with AWGN (Added White Gaussian Noise).

It can be multidimensional if ‘slope’ is a vector. If flat is True (in 1 dimesion) generate equally spaces samples instead of random ones. This is useful for the test phase.