Ejemplo n.º 1
0
        public void Initialize(double F)
        {
            if (!IsValidAlpha(F))
            {
                throw new ArgumentOutOfRangeException("F is out of range (has to be positive)");
            }

            this.F = F;
            if (gamma == null)
            {
                gamma = new GammaDistribution(0.5 * F, 1);
            }
            else
            {
                gamma.Initialize(0.5 * F, 1);
            }
        }
Ejemplo n.º 2
0
		public void TestGammaDistribution()
		{
			double[][] para = {
new double[]{1.375, 0.5, 0.2611286278084653847745789, 1.046077103945108021281691, 1.844156400106479932815508, 0.0918157038807440615366658}
      };
			for (int i = 0; i < para.Length; i++)
			{
				ContDistTester tester = new ContDistTester(para[i], delegate(double a, double b)
				{
					GammaDistribution ret = new GammaDistribution(a, b);

					return ret;
				}
					);
				tester.Test(1E-14);
			}
		}
Ejemplo n.º 3
0
		public void Initialize(double F)
		{
			if (!IsValidAlpha(F))
				throw new ArgumentOutOfRangeException("F is out of range (has to be positive)");

			this.F = F;
			if (gamma == null)
				gamma = new GammaDistribution(0.5 * F, 1);
			else
				gamma.Initialize(0.5 * F, 1);
		}