Generates one-dimensional sinc test data.
[x,y] = sincdata(type,n,var,fname,row)
- noisy realisation of y =
sin(x)/x
.
The parameters:
type
- the type of the additive noise. Recognised types are: 'gauss', 'laplace', and 'posexp'.
n
- the number of samples.
var
- the noise (variance).
fname
- the name of the file where to write the samples. If the string is empty (or the function has only three parameters), then no file is written.
row
- if this option is set, then the input positions x
are not random but evenly spaced.
The input x
is in [-xrange,xrange]
and
y=yrange*sinx(x/xrange)
.
The default values of the scaling parameters are xrange=20
and
yrange=5
. These defaults can be altered by having two
additional parameters (7
in total) when calling sincdata
:
[x,y] = sincdata(type,n,var,fname,row,range,yrange)
ogp
, ogptrain
, c_reg_gauss
, c_reg_exp
, c_reg_lapl
, demogp_reg
, sinc2data
Copyright (c) Lehel Csató (2001-2004)