fr.cnes.sirius.patrius.stela.forces
Class Squaring

java.lang.Object
  extended by fr.cnes.sirius.patrius.stela.forces.Squaring

public final class Squaring
extends Object

Class containing methods used to compute Simpson's quadrature.

Since:
1.3
Version:
$Id: Squaring.java 12468 2015-03-04 09:16:38Z bignon $
Author:
Tiziana Sabatini
Concurrency :
immutable

Method Summary
static double[][] computeSquaringPoints(int numPoints, StelaEquinoctialOrbit orbit, double startPoint, double endPoint)
          Computation of squaring points equally distributed according to true anomaly.
static StelaEquinoctialOrbit[] computeSquaringPointsEccentric(int numPoints, StelaEquinoctialOrbit orbit)
          Computation of squaring points equally distributed according to eccentric anomaly.
static AbsoluteDate[] getSquaringJDCNES()
           
static double simpsonMean(double[] y)
          Simpson's rule.
static double simpsonMean(double[] y, double deltaEi)
          Simpson's rule when the integration is not done on the entire orbit, but only on one specific part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

simpsonMean

public static double simpsonMean(double[] y)
                          throws OrekitException
Simpson's rule.

Parameters:
y - function values
Returns:
simpson's mean of y.
Throws:
OrekitException - exception raised if number of intervals for Simpson's Rule is not even.

simpsonMean

public static double simpsonMean(double[] y,
                                 double deltaEi)
                          throws OrekitException
Simpson's rule when the integration is not done on the entire orbit, but only on one specific part.

Parameters:
y - function values
deltaEi - interval length in eccentric anomaly
Returns:
simpson's mean of y.
Throws:
OrekitException - exception raised if number of intervals for Simpson's Rule is not even.

computeSquaringPoints

public static double[][] computeSquaringPoints(int numPoints,
                                               StelaEquinoctialOrbit orbit,
                                               double startPoint,
                                               double endPoint)
                                        throws OrekitException
Computation of squaring points equally distributed according to true anomaly.

Parameters:
numPoints - number of squaring points
orbit - an orbit
startPoint - starting true anomaly of the considered part of the orbit
endPoint - ending true anomaly of the considered part of the orbit
Returns:
squaring points
Throws:
OrekitException - thrown if number of points is not odd

getSquaringJDCNES

public static AbsoluteDate[] getSquaringJDCNES()
Returns:
the squaringJDCNES

computeSquaringPointsEccentric

public static StelaEquinoctialOrbit[] computeSquaringPointsEccentric(int numPoints,
                                                                     StelaEquinoctialOrbit orbit)
                                                              throws OrekitException
Computation of squaring points equally distributed according to eccentric anomaly.

Parameters:
numPoints - number of squaring points
orbit - an orbit
Returns:
squaring points
Throws:
OrekitException - thrown if number of points is not odd


Copyright © 2016 CNES. All Rights Reserved.