~ubuntu-branches/ubuntu/maverick/commons-math/maverick

« back to all changes in this revision

Viewing changes to src/test/java/org/apache/commons/math/special/BetaTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2010-04-05 23:33:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100405233302-gpqlceked76nw28a
Tags: 2.1-1
* New upstream release.
* Bump Standards-Version to 3.8.4: no changes needed
* Bump debhelper to >= 7
* Switch to 3.0 (quilt) source format:
  - Remove B-D on quilt
  - Add d/source/format
  - Remove d/README.source

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
6
6
 * (the "License"); you may not use this file except in compliance with
7
7
 * the License.  You may obtain a copy of the License at
8
 
 * 
 
8
 *
9
9
 *      http://www.apache.org/licenses/LICENSE-2.0
10
 
 * 
 
10
 *
11
11
 * Unless required by applicable law or agreed to in writing, software
12
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
22
import junit.framework.TestCase;
23
23
 
24
24
/**
25
 
 * @version $Revision: 670469 $ $Date: 2008-06-23 04:01:38 -0400 (Mon, 23 Jun 2008) $
 
25
 * @version $Revision: 811685 $ $Date: 2009-09-05 13:36:48 -0400 (Sat, 05 Sep 2009) $
26
26
 */
27
27
public class BetaTest extends TestCase {
28
28
    /**
60
60
    public void testRegularizedBetaPositivePositiveNan() {
61
61
        testRegularizedBeta(Double.NaN, 0.5, 1.0, Double.NaN);
62
62
    }
63
 
    
 
63
 
64
64
    public void testRegularizedBetaNegativePositivePositive() {
65
65
        testRegularizedBeta(Double.NaN, -0.5, 1.0, 2.0);
66
66
    }
67
 
    
 
67
 
68
68
    public void testRegularizedBetaPositiveNegativePositive() {
69
69
        testRegularizedBeta(Double.NaN, 0.5, -1.0, 2.0);
70
70
    }
71
 
    
 
71
 
72
72
    public void testRegularizedBetaPositivePositiveNegative() {
73
73
        testRegularizedBeta(Double.NaN, 0.5, 1.0, -2.0);
74
74
    }
75
 
    
 
75
 
76
76
    public void testRegularizedBetaZeroPositivePositive() {
77
77
        testRegularizedBeta(0.0, 0.0, 1.0, 2.0);
78
78
    }
79
 
    
 
79
 
80
80
    public void testRegularizedBetaPositiveZeroPositive() {
81
81
        testRegularizedBeta(Double.NaN, 0.5, 0.0, 2.0);
82
82
    }
83
 
    
 
83
 
84
84
    public void testRegularizedBetaPositivePositiveZero() {
85
85
        testRegularizedBeta(Double.NaN, 0.5, 1.0, 0.0);
86
86
    }
87
 
    
 
87
 
88
88
    public void testRegularizedBetaPositivePositivePositive() {
89
89
        testRegularizedBeta(0.75, 0.5, 1.0, 2.0);
90
90
    }
91
 
    
 
91
 
92
92
    public void testLogBetaNanPositive() {
93
93
        testLogBeta(Double.NaN, Double.NaN, 2.0);
94
94
    }
95
 
    
 
95
 
96
96
    public void testLogBetaPositiveNan() {
97
97
        testLogBeta(Double.NaN, 1.0, Double.NaN);
98
98
    }
99
 
    
 
99
 
100
100
    public void testLogBetaNegativePositive() {
101
101
        testLogBeta(Double.NaN, -1.0, 2.0);
102
102
    }
103
 
    
 
103
 
104
104
    public void testLogBetaPositiveNegative() {
105
105
        testLogBeta(Double.NaN, 1.0, -2.0);
106
106
    }
107
 
    
 
107
 
108
108
    public void testLogBetaZeroPositive() {
109
109
        testLogBeta(Double.NaN, 0.0, 2.0);
110
110
    }
111
 
    
 
111
 
112
112
    public void testLogBetaPositiveZero() {
113
113
        testLogBeta(Double.NaN, 1.0, 0.0);
114
114
    }
115
 
    
 
115
 
116
116
    public void testLogBetaPositivePositive() {
117
117
        testLogBeta(-0.693147180559945, 1.0, 2.0);
118
118
    }
119
 
}
 
 
b'\\ No newline at end of file'
 
119
}