sfof
astro.hpp
Go to the documentation of this file.
1 
7 #ifndef ASTRO_H
8 #define ASTRO_H
9 
19 #include <vector>
20 #include "point_class.hpp"
21 
22 class Astro { // Class structure for astronmy functions
23 
24 public:
25 
34  int find_bin (double, double, double);
35 
44  int num_bins (double, double, double);
45 
53  bool within (double, double, double);
54 
60  double deg2rad (double);
61 
67  double rad2deg (double);
68 
78  double angsep (double, double, double, double);
79 
87  double angsep (const Point &, const Point &);
88 
94  double mean (const std::vector<double> &);
95 
101  double median (std::vector<double>);
102 
108  double variance (const std::vector<double> &);
109 
116  double stdev (const std::vector<double> &);
117 
124  double stderr_mean (const std::vector<double> &);
125 
132  double stderr_median (const std::vector<double> &);
133 
139  double min (const std::vector<double> &);
140 
146  double max (const std::vector<double> &);
147 
148 };
149 
150 #endif // ASTRO_H
point_class.hpp
Astro::variance
double variance(const std::vector< double > &)
This method calculates the variance of a vector of doubles.
Definition: astro.cpp:105
Astro::deg2rad
double deg2rad(double)
This method converts the input angle from degrees to radians.
Definition: astro.cpp:37
Astro::angsep
double angsep(double, double, double, double)
This method calculates the angular separation in radians between two points.
Definition: astro.cpp:65
Astro::stdev
double stdev(const std::vector< double > &)
This method calculates the standard deviation of a vector of doubles.
Definition: astro.cpp:114
Point
Definition: point_class.hpp:18
Astro::stderr_median
double stderr_median(const std::vector< double > &)
This method calculates the standard error on the median of a vector of doubles.
Definition: astro.cpp:125
Astro::rad2deg
double rad2deg(double)
This method converts the input angle from radians to degrees.
Definition: astro.cpp:42
Astro::num_bins
int num_bins(double, double, double)
This method finds the number of bins in a given range for a given bin size.
Definition: astro.cpp:20
Astro
Class containing basic functions required for astronomy.
Definition: astro.hpp:22
Astro::within
bool within(double, double, double)
This method deterimines whether or not a value is within the limits provided.
Definition: astro.cpp:29
Astro::stderr_mean
double stderr_mean(const std::vector< double > &)
This method calculates the standard error on the mean of a vector of doubles.
Definition: astro.cpp:119
Astro::max
double max(const std::vector< double > &)
This method calculates the maximum value of a vector of doubles.
Definition: astro.cpp:138
Astro::median
double median(std::vector< double >)
This method calculates the median value of a vector of doubles.
Definition: astro.cpp:90
Astro::find_bin
int find_bin(double, double, double)
This method finds a bin corresponding to the input value given the minimum value in range and the bin...
Definition: astro.cpp:9
Astro::mean
double mean(const std::vector< double > &)
This method calculates the mean value of a vector of doubles.
Definition: astro.cpp:82
Astro::min
double min(const std::vector< double > &)
This method calculates the minimum value of a vector of doubles.
Definition: astro.cpp:131