[#MemPoolFeeRateEstimator-CalculateMaxWeightPercentiles]
= xref:MemPoolFeeRateEstimator.adoc[MemPoolFeeRateEstimator]::CalculateMaxWeightPercentiles
:relfileprefix: ../
:mrdocs:

Calculate the 50th and 75th percentile fee rates from block template chunks, sorted in descending mining&hyphen;score order&period; A percentile is left empty when the chunks cannot cover the corresponding fraction of a block&period;

== Synopsis

Declared in `&lt;policy&sol;fees&sol;mempool&lowbar;estimator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:MemPoolFeeRateEstimator/Percentiles.adoc[Percentiles]
CalculateMaxWeightPercentiles(std::span&lt;FeePerVSize const&gt; chunk&lowbar;feerates);
----

== Return Value

The 50th and 75th percentile fee rates&semi; a percentile is left empty when the chunks cannot cover it&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chunk&lowbar;feerates* [in]
| Block template chunk fee rates sorted by descending mining score&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
