public class LebedevGrid extends Object
Routines adapted from C++. Original routines written by Vyacheslav Lebedev, Dmitri Laikov and John Burkardt under the GNU LGPL license. (see sphere_lebedev_rule.html)
Reference: Vyacheslav Lebedev, Dmitri Laikov, A quadrature formula for the sphere of the 131st algebraic order of accuracy, Russian Academy of Sciences Doklady Mathematics, Volume 59, Number 3, 1999, pages 477-481.
Constructor and Description |
---|
LebedevGrid(LebedevGrid grid)
Build a new
LebedevGrid instance existing instance. |
LebedevGrid(List<LebedevGridPoint> pointsIn)
Build a new
LebedevGrid instance from the specified list of grid points. |
Modifier and Type | Method and Description |
---|---|
List<LebedevGridPoint> |
getDuplicates(LebedevGrid grid,
double absolutePrecision)
Returns the grid points of the given grid that are also contained in the current grid.
|
List<LebedevGridPoint> |
getDuplicates(List<LebedevGridPoint> pointsIn,
double absolutePrecision)
Returns the grid points of the given list that are also contained in the current grid.
|
List<LebedevGridPoint> |
getPoints()
Gets the list of grid points.
|
int |
getSize()
Gets the number of grid points.
|
double |
getTotalWeight()
Returns the sum of the weights of all the grid points.
|
public LebedevGrid(List<LebedevGridPoint> pointsIn)
LebedevGrid
instance from the specified list of grid points.pointsIn
- a list of grid pointspublic LebedevGrid(LebedevGrid grid)
LebedevGrid
instance existing instance.grid
- a Lebedev gridpublic List<LebedevGridPoint> getDuplicates(LebedevGrid grid, double absolutePrecision)
grid
- a Lebedev gridabsolutePrecision
- the absolute Cartesian distance above which two points are
considered differentpublic List<LebedevGridPoint> getDuplicates(List<LebedevGridPoint> pointsIn, double absolutePrecision)
pointsIn
- a list of Lebedev grid pointsabsolutePrecision
- the absolute cartesian distance above which two points are
considered to be differentpublic double getTotalWeight()
It should always be equal to one.
public List<LebedevGridPoint> getPoints()
public int getSize()
Copyright © 2020 CNES. All rights reserved.