public void LowerCriticalImplication01()
 {
     FourFoldContingencyTable table = new FourFoldContingencyTable(10, 2, 0, 0);
     //FourFTQuantifiers.LowerCriticalImplication quantifier = new RelMiner.FourFTQuantifiers.LowerCriticalImplication(0.8f, 0.05f);
     Assert.IsFalse(table.CriticalImplicationValidity(0.8D, 0.05D, CoreRelationEnum.LessThanOrEqualCore), "FFTQ028");
     Assert.AreEqual(0.561894564884689D, table.CriticalImplicationValue(0.05D), "FFTQ029");
     //TODO I`m not sure
 }
 public void LowerCriticalImplication02()
 {
     FourFoldContingencyTable table = new FourFoldContingencyTable(100, 1, 0, 0);
     Assert.IsTrue(table.CriticalImplicationValidity(0.8D, 0.05D, CoreRelationEnum.LessThanOrEqualCore), "FFTQ030");
     Assert.AreEqual(0.953892650075111D, table.CriticalImplicationValue(0.05D), "FFTQ031");
     //TODO I`m not sure
 }
 /// <summary>
 /// Returns <c>true</c> if the statistical strength value is greater than or equal to the p parameter with the specified statistical significance (alpha).
 /// </summary>
 /// <returns><c>true</c> if if the statistical confidence value is greater than or equal to the p parameter with the specified statistical significance (alpha).</returns>
 /// <remarks>
 /// <para>It computes the following condition:</para>
 /// <para>Sum[i = 0..a] x! / (i! * (x - i)!) * p^i * (1 - p)^(x - i) is in <c>relation</c> to alpha.</para>
 /// </remarks>
 public override bool Validity(AbstractQuantifierSetting setting, Ice.Current __current)
 {
     FourFoldContingencyTable table = new FourFoldContingencyTable(setting.firstContingencyTableRows);
     return table.CriticalImplicationValidity(P, Alpha, Relation);
 }