Blender V5.0
math_cdf.h File Reference
#include "util/math_base.h"
#include "util/vector.h"

Go to the source code of this file.

Functions

template<typename Functor>
CCL_NAMESPACE_BEGIN void util_cdf_evaluate (const int resolution, const float from, const float to, Functor functor, vector< float > &cdf)
void util_cdf_invert (const int resolution, const float from, const float to, const vector< float > &cdf, const bool make_symmetric, vector< float > &inv_cdf)
template<typename Functor>
void util_cdf_inverted (const int resolution, const float from, const float to, Functor functor, const bool make_symmetric, vector< float > &inv_cdf)

Function Documentation

◆ util_cdf_evaluate()

template<typename Functor>
CCL_NAMESPACE_BEGIN void util_cdf_evaluate ( const int resolution,
const float from,
const float to,
Functor functor,
vector< float > & cdf )

Definition at line 14 of file math_cdf.h.

References fabsf, float, i, x, and y.

Referenced by util_cdf_inverted().

◆ util_cdf_invert()

void util_cdf_invert ( const int resolution,
const float from,
const float to,
const vector< float > & cdf,
const bool make_symmetric,
vector< float > & inv_cdf )

Definition at line 14 of file math_cdf.cpp.

References assert, float, i, x, and y.

Referenced by util_cdf_inverted().

◆ util_cdf_inverted()

template<typename Functor>
void util_cdf_inverted ( const int resolution,
const float from,
const float to,
Functor functor,
const bool make_symmetric,
vector< float > & inv_cdf )

Definition at line 45 of file math_cdf.h.

References util_cdf_evaluate(), and util_cdf_invert().

Referenced by Camera::device_update(), and filter_table().