# rbfDemo

## PURPOSE

Demonstration of rbf networks for regression.

## SYNOPSIS

function rbfDemo( dataType, noiseSig, scale, k, cluster, show )

## DESCRIPTION

     Demonstration of rbf networks for regression.

     See rbfComputeBasis for discussion of rbfs.

     USAGE
      rbfDemo( dataType, noiseSig, scale, k, cluster, show )

     INPUTS
      dataType   - 0: 1D sinusoid
                   1: 2D sinusoid
                   2: 2D stretched sinusoid
      noiseSig   - std of idd gaussian noise
      scale      - see rbfComputeBasis
      k          - see rbfComputeBasis
      cluster    - see rbfComputeBasis
      show       - figure to use for display (no display if == 0)

     OUTPUTS

     EXAMPLE
      rbfDemo( 0, .2, 2, 5, 0, 1 );
      rbfDemo( 1, .2, 2, 50, 0, 3 );
      rbfDemo( 2, .2, 5, 50, 0, 5 );

     See also RBFCOMPUTEBASIS, RBFCOMPUTEFTRS

     Piotr's Image&Video Toolbox      Version 2.0
     Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Lesser GPL [see external/lgpl.txt]

## CROSS-REFERENCE INFORMATION

This function calls:

- rbfComputeBasis Get locations and sizes of radial basis functions for use in rbf network.
- rbfComputeFtrs Evaluate features of X given a set of radial basis functions.

This function is called by: