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.

正态分布函数.

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)
          创建一个标准方差函数.
 
Method Summary
 boolean equals(java.lang.Object obj)
          覆盖equals方法.
 double getMean()
          返回平均数.
 double getStDev()
          返回标准方差.
 double getY(double x)
          根据x值计算y值.
 int hashCode()
          计算hashcode值.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NormalDistributionFunction

public NormalDistributionFunction(double mean,
                                  double stDev)
创建一个标准方差函数.

Parameters:
mean - double 平均数.
stDev - double 标准方差.
Method Detail

getMean

public double getMean()
返回平均数.

Returns:
double 平均数.

getStDev

public double getStDev()
返回标准方差.

Returns:
double 标准方差.

getY

public double getY(double x)
根据x值计算y值.

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

equals

public boolean equals(java.lang.Object obj)
覆盖equals方法.

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

toString

public java.lang.String toString()
覆盖toString()方法.

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

hashCode

public int hashCode()
计算hashcode值.

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