net.grelf
Class Gaussian

java.lang.Object
  extended by net.grelf.Gaussian

public class Gaussian
extends java.lang.Object

Calculate values of the Gaussian curve. For use in convolutions.


Constructor Summary
Gaussian(float mean, float halfHeightRadius)
          Create a Gaussian curve of given mean x-value and half-height radius.
 
Method Summary
 float calc(float x)
          Calculate a y value, given x
static double[] getProfileAsArray(int width, double maxLevel)
           
 java.lang.String toString()
          Get a String representation of the Gaussian
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gaussian

public Gaussian(float mean,
                float halfHeightRadius)
Create a Gaussian curve of given mean x-value and half-height radius.

Method Detail

calc

public float calc(float x)
Calculate a y value, given x


getProfileAsArray

public static double[] getProfileAsArray(int width,
                                         double maxLevel)

toString

public java.lang.String toString()
Get a String representation of the Gaussian

Overrides:
toString in class java.lang.Object