1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.irurueta.statistics;
17
18
19
20
21 public class GaussLegendreQuadrature {
22
23
24
25 protected static final int N_GAU = 18;
26
27
28
29
30 static final double[] Y = {0.0021695375159141994,
31 0.011413521097787704, 0.027972308950302116, 0.051727015600492421,
32 0.082502225484340941, 0.12007019910960293, 0.16415283300752470,
33 0.21442376986779355, 0.27051082840644336, 0.33199876341447887,
34 0.39843234186401943, 0.46931971407375483, 0.54413605556657973,
35 0.62232745288031077, 0.70331500465597174, 0.78649910768313447,
36 0.87126389619061517, 0.95698180152629142};
37
38
39
40
41 static final double[] W = {0.0055657196642445571,
42 0.012915947284065419, 0.020181515297735382, 0.027298621498568734,
43 0.034213810770299537, 0.040875750923643261, 0.047235083490265582,
44 0.053244713977759692, 0.058860144245324798, 0.064039797355015485,
45 0.068745323835736408, 0.072941885005653087, 0.076598410645870640,
46 0.079687828912071670, 0.082187266704339706, 0.084078218979661945,
47 0.085346685739338721, 0.085983275670394821};
48
49
50
51
52 protected GaussLegendreQuadrature() {
53 }
54 }