HighMap library (C++)
Loading...
Searching...
No Matches
statistics.hpp
Go to the documentation of this file.
1/* Copyright (c) 2026 Otto Link. Distributed under the terms of the GNU General
2 Public License. The full license is in the file LICENSE, distributed with
3 this software. */
4
10#pragma once
11
12#include "highmap/array.hpp"
13
14namespace hmap
15{
16
32float autocorr_length_scale(const Array &array, float max_lag_fraction = 0.4f);
33
47glm::vec2 autocorr_length_scale_axial(const Array &array,
48 float max_lag_fraction = 0.4f);
49
60float variance(const Array &array, float *p_mean = nullptr);
61
62} // namespace hmap
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Definition algebra.hpp:23
float autocorr_length_scale(const Array &array, float max_lag_fraction=0.4f)
Estimate the isotropic dominant length scale of a 2D heightmap.
Definition autocorr_length_scale.cpp:13
glm::vec2 autocorr_length_scale_axial(const Array &array, float max_lag_fraction=0.4f)
Estimate axis-aligned dominant length scales of a 2D heightmap.
Definition autocorr_length_scale.cpp:65
float variance(const Array &array, float *p_mean=nullptr)
Compute the population variance of a 2D array.
Definition statistics.cpp:9