ningshuxia
2022-12-01 ad494f13d2ddf31f142cf7fb908b3a6e90395a1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace IStation.Numerics.Integration.GaussRule
{
    /// <summary>
    /// Contains two GaussPoint.
    /// </summary>
    internal class GaussPointPair
    {
        internal int Order { get; private set; }
 
        internal double[] Abscissas { get; private set; }
 
        internal double[] Weights { get; private set; }
        
        internal int SecondOrder { get; private set; }
 
        internal double[] SecondAbscissas { get; private set; }
 
        internal double[] SecondWeights { get; private set; }
 
        internal double IntervalBegin { get; private set; }
 
        internal double IntervalEnd { get; private set; }
 
        internal GaussPointPair(double intervalBegin, double intervalEnd, int order, double[] abscissas, double[] weights, int secondOrder, double[] secondAbscissas, double[] secondWeights)
        {
            IntervalBegin = intervalBegin;
            IntervalEnd = intervalEnd;
            Order = order;
            Abscissas = abscissas;
            Weights = weights;
            SecondOrder = secondOrder;
            SecondAbscissas = secondAbscissas;
            SecondWeights = secondWeights;            
        }
 
        internal GaussPointPair(int order, double[] abscissas, double[] weights, int secondOrder, double[] secondWeights)
            : this(-1, 1, order, abscissas, weights, secondOrder, null, secondWeights)
        { }
    }
}