PRTools contents

PRTools manual

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 manual