38 EnergyMesh(
double femin,
double femax,
long fq);
45 inline long get_q()
const {
return q; }
47 inline double get_emin()
const {
return emin; }
49 inline double get_emax()
const {
return emax; }
51 inline double get_e(
long n)
const {
return e[n]; }
53 inline double get_ec(
long n)
const {
return ec[n]; }
55 inline const double*
get_ae(
void)
const {
return e; }
57 inline const double*
get_aec(
void)
const {
return ec; }
64 virtual void print(std::ostream& file,
int l)
const;
68 static const int pqener = 1001;
78 double ec[pqener - 1];
const double * get_ae(void) const
Return all left sides.
virtual void print(std::ostream &file, int l) const
virtual ~EnergyMesh()
Destructor.
double get_emin() const
Return left side of the first bin.
long get_q() const
Return number of bins.
virtual EnergyMesh * copy() const
friend std::ostream & operator<<(std::ostream &file, EnergyMesh &f)
double get_emax() const
Return right side of the last bin.
const double * get_aec(void) const
Return all interval centres.
double get_ec(long n) const
Return center of a given bin.
double get_e(long n) const
Return left side of a given bin.
long get_interval_number_between_centers(const double ener) const
long get_interval_number(const double ener) const
EnergyMesh()
Default constructor.