Replaced calls to deprecated Beta.logBeta(double, double, double, int) with

calls to Beta.logBeta(double, double).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1416017 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastien Brisard 2012-12-01 16:24:33 +00:00
parent 141f4b8163
commit ce2502a522
2 changed files with 66 additions and 38 deletions

102
pom.xml
View File

@ -313,49 +313,60 @@
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/*Test.java</include>
<include>**/*TestBinary.java</include>
<include>**/*TestPermutations.java</include>
</includes>
<excludes>
<exclude>**/*AbstractTest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/src.xml</descriptor>
<descriptor>src/main/assembly/bin.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>${commons.clirr.version}</version>
<executions>
<execution>
<goals>
</goals>
</execution>
</executions>
</plugin>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/*Test.java</include>
<include>**/*TestBinary.java</include>
<include>**/*TestPermutations.java</include>
</includes>
<excludes>
<exclude>**/*AbstractTest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/src.xml</descriptor>
<descriptor>src/main/assembly/bin.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>${commons.clirr.version}</version>
<executions>
<execution>
<goals>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-pmd-plugin</artifactId>
<version>${math.pmd.version}</version>
<configuration>
<targetJdk>${maven.compile.target}</targetJdk>
</configuration>
</plugin>
</plugins>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-twiki</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<reporting>
@ -436,5 +447,22 @@
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>fast</id>
<properties>
<skipTests>true</skipTests>
<maven.javadoc.skip>true</maven.javadoc.skip>
<checkstyle.skip>true</checkstyle.skip>
<clirr.skip>true</clirr.skip>
<cpd.skip>true</cpd.skip>
<maven.clover.skip>true</maven.clover.skip>
<cobertura.skip>true</cobertura.skip>
<findbugs.skip>true</findbugs.skip>
<pmd.skip>true</pmd.skip>
</properties>
</profile>
</profiles>
</project>

View File

@ -219,7 +219,7 @@ public class Beta {
}
};
ret = FastMath.exp((a * FastMath.log(x)) + (b * FastMath.log(1.0 - x)) -
FastMath.log(a) - logBeta(a, b, epsilon, maxIterations)) *
FastMath.log(a) - logBeta(a, b)) *
1.0 / fraction.evaluate(x, epsilon, maxIterations);
}