![]() |
VieSched++
VieVS VLBI Scheduling Software
|
fast lookup tables with reduced accuracy More...
#include <LookupTable.h>
Static Public Member Functions | |
| static void | initialize () |
| initialize lookup tables More... | |
| static double | sinLookup (double x) |
| sinus lookup table More... | |
| static double | cosLookup (double x) |
| cosine lookup table More... | |
| static double | acosLookup (double x) |
| arcus cosine lookup table More... | |
| static float | angularDistance (const PointingVector &p1, const PointingVector &p2) noexcept |
| angular distance between two points More... | |
| static float | angularDistance (double phi1, double theta1, double phi2, double theta2) noexcept |
| angular distance between two points More... | |
Static Private Attributes | |
| static std::vector< std::vector< std::vector< float > > > | angularDistanceLookup = {} |
| lookup table for angular distance between two points More... | |
| static std::vector< double > | sinLookupTable |
| table for fast lookup for sine function with reduced accuracy. Key is fraction of .001 pi More... | |
| static std::vector< double > | cosLookupTable |
| table for fast lookup for cosine function with reuced accuracy. Key is fraction of .001 pi More... | |
| static std::vector< double > | acosLookupTable |
fast lookup tables with reduced accuracy
the key is always an integer that counts in .001 intervals (using th sinLookup with a key of 327 would mean you get sin(0.327) as a return value)
|
static |
arcus cosine lookup table
| x | argument in radians |
|
staticnoexcept |
angular distance between two points
| p1 | start pointing vector |
| p2 | end pointing vector |

|
staticnoexcept |
angular distance between two points
| phi1 | start phi in radians |
| theta1 | start theta in radians |
| phi2 | end phi in radians |
| theta2 | end thatet in radians |
|
static |
cosine lookup table
| x | argument in radians |

|
static |
initialize lookup tables

|
static |
sinus lookup table
| x | argument in radians |
|
staticprivate |
table for fast lookup for inverse cosine function with reduced accuracy. Key is fraction of .001 pi
|
staticprivate |
lookup table for angular distance between two points
|
staticprivate |
table for fast lookup for cosine function with reuced accuracy. Key is fraction of .001 pi
|
staticprivate |
table for fast lookup for sine function with reduced accuracy. Key is fraction of .001 pi