PRTools Contents

PRTools User Guide

gendatlin

GENDATLIN

Generation of linear regression data

       A = GENDATLIN(N,B0,B1,SIGMA)

Input
 N Number of objects to generate
 B0 Offset
 B1 Slope
 SIGMA Standard deviation of the noise

Output
 A Regression dataset

Description

Generate regression data A, containing N (x,y)-pairs according to
y = B0 + B1^T*x + N(0,SIGMA) Data x is distributed uniformly between 0 and 1.

See also

gendatsin, gendatsinc,

PRTools Contents

PRTools User Guide

This file has been automatically generated. If badly readable, use the help-command in Matlab.