fakedata: Generating seperatable data

Description Usage Arguments Value Author(s) Examples

Description

fakedata for algorithm like perceptron

Usage

1
fakedata(w, n)

Arguments

w

The w[1:d] is the normal vector of a hyperplane, w[d+1] = -c is the negative offset parameter

n

Sample size

Value

S

n by (d+1) sample matrix with last col equal to 1

y

Normal vector of the associated class labels

Author(s)

Xiaoyao Yang

Examples

1
fakedata(c(1,1,1),10)

freestats documentation built on May 2, 2019, 1:18 p.m.