Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_math_cdf.h
| Show All 11 Lines | |||||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef __UTIL_MATH_CDF_H__ | #ifndef __UTIL_MATH_CDF_H__ | ||||
| #define __UTIL_MATH_CDF_H__ | #define __UTIL_MATH_CDF_H__ | ||||
| #include "util_algorithm.h" | #include "util/util_algorithm.h" | ||||
| #include "util_math.h" | #include "util/util_math.h" | ||||
| #include "util_vector.h" | #include "util/util_vector.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* Evaluate CDF of a given functor with given range and resolution. */ | /* Evaluate CDF of a given functor with given range and resolution. */ | ||||
| template <typename Functor> | template <typename Functor> | ||||
| void util_cdf_evaluate(const int resolution, | void util_cdf_evaluate(const int resolution, | ||||
| const float from, | const float from, | ||||
| const float to, | const float to, | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||