18 return detail::path::bresenham(x0, x1);
21 return detail::path::actual(x0, x1);
24 return detail::path::full(x0, x1);
28inline auto distance(
const std::vector<size_t>& roi)
34inline auto distance(
const std::vector<size_t>& roi,
size_t dim)
40inline auto distance(
const std::vector<size_t>& roi,
const std::vector<double>& h)
46inline auto distance(
const std::vector<size_t>& roi,
const std::vector<double>& h,
size_t dim)
53inline auto S2(
const std::vector<size_t>& roi,
const T& f,
const T& g,
bool periodic)
60template <
class T,
class M>
62S2(
const std::vector<size_t>& roi,
70 ensemble.
S2(f, g, fmask, gmask);
75inline auto C2(
const std::vector<size_t>& roi,
const T& f,
const T& g,
bool periodic)
82template <
class T,
class M>
84C2(
const std::vector<size_t>& roi,
92 ensemble.
C2(f, g, fmask, gmask);
97inline auto W2(
const std::vector<size_t>& roi,
const T& w,
const T& f,
bool periodic)
104template <
class T,
class M>
106W2(
const std::vector<size_t>& roi,
const T& w,
const T& f,
const M& fmask,
bool periodic)
109 ensemble.
W2(w, f, fmask);
113template <
class C,
class T>
115W2c(
const std::vector<size_t>& roi,
127template <
class C,
class T,
class M>
129W2c(
const std::vector<size_t>& roi,
143inline auto heightheight(
const std::vector<size_t>& roi,
const T& f,
bool periodic)
150template <
class T,
class M>
151inline auto heightheight(
const std::vector<size_t>& roi,
const T& f,
const M& fmask,
bool periodic)
159inline auto L(
const std::vector<size_t>& roi,
const T& f,
bool periodic,
path_mode mode)
Compute ensemble averaged statistics, by repetitively calling the member-function of a certain statis...
void L(const T &f, path_mode mode=path_mode::Bresenham)
Add realization to lineal-path function.
void S2(const T &f, const T &g)
Add realization to 2-point correlation: P(f(i) * g(i + di)).
void heightheight(const T &f)
Add realization to height-height correlation.
void W2c(const C &clusters, const C ¢ers, const T &f, path_mode mode=path_mode::Bresenham)
Add realization to collapsed weighted 2-point correlation.
void W2(const T &w, const T &f)
Add realization to weighted 2-point correlation.
array_type::array< double > distance() const
Get the relative distance of each pixel in the 'region-of-interest' to its center.
array_type::array< double > result() const
Get ensemble average.
void C2(const T &f, const T &g)
Add realization to 2-point cluster function: P(f(i) == g(i + di)).
xt::xtensor< T, N > tensor
Fixed (static) rank array.
Toolbox to compute statistics.
path_mode
Different methods to compute a pixel-path.
@ Bresenham
Bresenham algorithm.
auto L(const std::vector< size_t > &roi, const T &f, bool periodic=true, path_mode mode=path_mode::Bresenham)
Lineal-path function.
auto W2c(const std::vector< size_t > &roi, const C &clusters, const C ¢ers, const T &f, path_mode mode=path_mode::Bresenham, bool periodic=true)
Collapsed weighted 2-point correlation.
auto C2(const std::vector< size_t > &roi, const T &f, const T &g, bool periodic=true)
2-point cluster function: P(f(i) == g(i + di)).
array_type::array< int > clusters(const T &f, bool periodic=true)
Compute clusters.
auto W2(const std::vector< size_t > &roi, const T &w, const T &f, bool periodic=true)
Weighted 2-point correlation.
array_type::tensor< int, 2 > path(const array_type::tensor< int, 1 > &x0, const array_type::tensor< int, 1 > &x1, path_mode mode=path_mode::Bresenham)
Compute a path between two pixels.
auto distance(const std::vector< size_t > &roi)
Get the relative distance of each pixel in the 'region-of-interest' to its center.
auto S2(const std::vector< size_t > &roi, const T &f, const T &g, bool periodic=true)
2-point correlation: P(f(i) * g(i + di)).
auto heightheight(const std::vector< size_t > &roi, const T &f, bool periodic=true)
Height-height correlation.