Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: kernel
See also: gau denxest regxest sker

Quantlet: ngau
Description: Computes the rescaled (multivariate) Gaussian kernel ngau(u) = 5.*gau(5.*u).

Usage: y = ngau(x)
Input:
x n x p matrix (or array)
Output:
y n x 1 matrix (or array)

Example:
library("kernel")
library("plot")
x = aseq(-5, 101, 0.1)
y = ngau(x)
dat1 = setmask(x~y, "line", "blue")
d = createdisplay(2, 1)
show(d, 1, 1, dat1)
; now a two dimensional normal density
x = grid(#(-1, -1), #(0.04, 0.04), #(50,50))
y = ngau(x)
dat2 = setmask(x~y, "line", "red")
show(d, 2, 1, dat2)
setgopt(d, 2, 1, "title", "rotate!")

Result:
A two port display is opened with a one dimensional
and a two dimensional gaussian kernel



Author: M. Mueller, W. Haerdle, 20021022
(C) MD*TECH Method and Data Technologies, 05.02.2006