FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::CapacityThreshold Class Reference

h(z): the knapsack threshold as a multiple of L, precomputed. More...

#include <fastmm/core/capacity_price.hpp>

Public Member Functions

void configure (double ratio) noexcept
 
double at (double z) const noexcept
 The multiple of L at window share z (clamped to [0, 1]).
 
double z0 () const noexcept
 
double ratio () const noexcept
 

Static Public Attributes

static constexpr int kSteps = 100
 

Detailed Description

h(z): the knapsack threshold as a multiple of L, precomputed.

Member Function Documentation

◆ configure()

void fastmm::CapacityThreshold::configure ( double  ratio)
inlinenoexcept

◆ at()

double fastmm::CapacityThreshold::at ( double  z) const
inlinenoexcept

The multiple of L at window share z (clamped to [0, 1]).

◆ z0()

double fastmm::CapacityThreshold::z0 ( ) const
inlinenoexcept

◆ ratio()

double fastmm::CapacityThreshold::ratio ( ) const
inlinenoexcept

Member Data Documentation

◆ kSteps

constexpr int fastmm::CapacityThreshold::kSteps = 100
staticconstexpr