⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 poisson.java

📁 Produce Java classes to calculate and display the Poisson probability when input the value of the av
💻 JAVA
字号:
public class Poisson
{

	//-----------------FIELDS----------------
	private int a;
	private long x;
	private double poisson_X;

	//--------------CONSTRUCTORS--------------
	public Poisson(int newA, long newX)
	{
		a = newA;
		x = newX;
	}

	//----------------METHODS-----------------
	public void calcPoisson()
	{
		Factorial newFactorial;
		newFactorial = new Factorial(x);
		poisson_X = (Math.pow(a,x) * Math.pow(Math.E,(-a))) / newFactorial.getProduct();
	}

	public double getPoisson_X()
	{
		return (poisson_X);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -