Go to the documentation of this file.
83 const Index nse =
x.nelem();
87 Vector x_unsorted(nse), m_unsorted(nse);
91 for (
Index i = 0; i < nse; i++) {
93 throw runtime_error(
"NaN found in selected size grid data.");
94 if (std::isnan(mass[i]))
95 throw runtime_error(
"NaN found among particle mass data.");
97 if (
x[i] >= x_fit_start &&
x[i] <= x_fit_end) {
98 x_unsorted[nsev] =
x[i];
99 m_unsorted[nsev] = mass[i];
106 "Less than two size points found in the range "
107 "[x_fit_start,x_fit_end]. It is then not possible "
108 "to determine the a and b parameters.");
111 Vector log_x(nsev), log_m(nsev);
113 for (
Index i = 0; i < nsev; i++) {
114 log_x[i] = log(x_unsorted[intarr_sort[i]]);
115 log_m[i] = log(m_unsorted[intarr_sort[i]]);
void linreg(Vector &p, ConstVectorView x, ConstVectorView y)
void derive_scat_species_a_and_b(Numeric &a, Numeric &b, const Vector &x, const Vector &mass, const Numeric &x_fit_start, const Numeric &x_fit_end)
Internal functions for microphysics calculations (size distributions etc.)
member functions of the Rng class and gsl_rng code
This can be used to make arrays out of anything.
void get_sorted_indexes(ArrayOfIndex &sorted, const T &data)
get_sorted_indexes
Declarations having to do with the four output streams.
This file contains declerations of functions of physical character.
Linear algebra functions.
NUMERIC Numeric
The type to use for all floating point numbers.
Workspace functions for the solution of cloud-box radiative transfer by Monte Carlo methods....
Internal cloudbox functions.
Internal functions associated with size distributions.
Propagation path structure and functions.
Header file for logic.cc.
const Numeric DENSITY_OF_ICE
Vector x(Workspace &ws) noexcept
INDEX Index
The type to use for all integer numbers and indices.
const Numeric DENSITY_OF_WATER
Contains sorting routines.
The global header file for ARTS.