norms: Norms

Description Format Details See Also Examples

Description

Gaussian random sample dataset.

Format

A data-frame with 400 rows and 3 columns (category c and coordinates x and y).

Details

This dataset generates gaussian random points with mean equals to 1 and standard deviation equals to 0.25. Each point has a category attribute A or B. They are centered at (1,1) and (2,2) for category A; centered at (1,2) and (2,1) for category B.

See Also

pnn-package, learn, smooth, perf, guess

Examples

1
2
3
4
library(pnn)
data(norms)
# Just see the first observations
norms[1:10,]

Example output

Attaching package: 'pnn'

The following object is masked from 'package:stats':

    smooth

   c         x         y
1  A 0.8726356 1.1579697
2  A 1.4049735 1.2477019
3  A 0.5281360 1.0571289
4  A 0.8950413 0.6429697
5  A 1.1552677 1.0348489
6  A 0.9432908 0.7721173
7  A 1.6365944 0.8363744
8  A 1.0147225 0.8764854
9  A 1.2125514 0.8136116
10 A 0.8435029 0.7798957

pnn documentation built on May 2, 2019, 9:30 a.m.