com.ijchart.xychart.function
Class NormalDistributionFunction

java.lang.Object
  extended by com.ijchart.xychart.function.NormalDistributionFunction
All Implemented Interfaces:
IFunction, java.io.Serializable

public class NormalDistributionFunction
extends java.lang.Object
implements IFunction, java.io.Serializable

Title: IJChart

Description: a chart library for the Java(tm) platform.

The normal distribution function.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Constructor Summary
NormalDistributionFunction(double mean, double stDev)
           Create a standard diviation function.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Override equals method.
 double getMean()
           Returns the mean.
 double getStDev()
           Returns the standard deviation.
 double getY(double x)
           Calculate the y value for a given inpu x.
 int hashCode()
           Returns a hash code value for the object.
 java.lang.String toString()
           Override toString method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NormalDistributionFunction

public NormalDistributionFunction(double mean,
                                  double stDev)
Create a standard diviation function.

Parameters:
mean - double The mean.
stDev - double The standard deviation.
Method Detail

getMean

public double getMean()
Returns the mean.

Returns:
double The mean.

getStDev

public double getStDev()
Returns the standard deviation.

Returns:
double The standard deviation.

getY

public double getY(double x)
Calculate the y value for a given inpu x.

Specified by:
getY in interface IFunction
Parameters:
x - double The x value.
Returns:
double The y value.

equals

public boolean equals(java.lang.Object obj)
Override equals method.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object
Returns:
boolean

toString

public java.lang.String toString()
Override toString method.

Overrides:
toString in class java.lang.Object
Returns:
String

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.