DFNgen  2.0
DFN Model Generator
generatingPoints.h
Go to the documentation of this file.
1 #ifndef _generatingPoints_h_
2 #define _generatingPoints_h_
3 #include "structures.h"
4 #include <vector>
5 #include <random>
6 #include "distributions.h"
7 
8 std::vector<Point> discretizeLineOfIntersection(double *pt1, double *pt2, double dist);
9 struct Point lineFunction3D(double *v, double *point, double t);
10 double *fisherDistribution(double theta, double phi, double kappa, std::mt19937_64 &generator);
11 double *randomTranslation(std::mt19937_64 &generator, float xMin, float xMax, float yMin, float yMax, float zMin, float zMax);
12 float truncatedPowerLaw(float randomNum, float emin, float emax, float alpha);
13 void generateTheta(float * &thetaArray, float aspectRatio, int nPoints);
14 bool greaterThan(float i, float j);
15 
16 /*****************************/
17 /* Returns max value from array */
18 /*template <typename T>
19 T max(T *ary, int size){
20  T max = ary[0];
21  for (int i = 1; i < size; i++){
22  if (max < ary[i]){
23  max = ary[i];
24  }
25  }
26  return max;
27 }*/
28 
29 #endif
struct Point lineFunction3D(double *v, double *point, double t)
void generateTheta(float *&thetaArray, float aspectRatio, int nPoints)
float * emin
Definition: readInput.cpp:222
double * fisherDistribution(double theta, double phi, double kappa, std::mt19937_64 &generator)
float * emax
Definition: readInput.cpp:225
double * randomTranslation(std::mt19937_64 &generator, float xMin, float xMax, float yMin, float yMax, float zMin, float zMax)
std::vector< Point > discretizeLineOfIntersection(double *pt1, double *pt2, double dist)
float truncatedPowerLaw(float randomNum, float emin, float emax, float alpha)
bool greaterThan(float i, float j)