27 #ifndef __GyotoPowerLawSpectrum_H_ 28 #define __GyotoPowerLawSpectrum_H_ 69 PowerLaw(double exponent, double constant=1.);
77 std::vector<double>
cutoff(std::string const &unit) const;
78 void
cutoff(std::vector<double> const &v, std::string const &unit);
79 std::vector<double>
cutoff() const;
80 void
cutoff(std::vector<double> const &v);
82 using Gyoto::Spectrum::Generic::operator();
83 virtual double operator()(double nu) const;
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
double minfreq_
Lower-frequency cutoff (emits at nu>=minfreq_)
Definition: GyotoPowerLawSpectrum.h:58
double constant() const
Get constant_.
double exponent() const
Get exponent_.
virtual PowerLaw * clone() const
Cloner.
std::vector< double > cutoff() const
Get cutoffs, in Hz.
Spectrum of a simple object (e.g. Star)
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
double constant_
I_nu=constant_*nu^exponent_.
Definition: GyotoPowerLawSpectrum.h:56
Pointers performing reference counting.
Definition: GyotoProperty.h:45
I_nu=constant_*nu^exponent_.
Definition: GyotoPowerLawSpectrum.h:53
Spectrum emitted by an Astrobj.
Definition: GyotoSpectrum.h:134
double exponent_
I_nu=constant_*nu^exponent_.
Definition: GyotoPowerLawSpectrum.h:57
double maxfreq_
Upper-frequency cutoff (emits at nu<=maxfreq_)
Definition: GyotoPowerLawSpectrum.h:59