[#CalculatePercentilesByWeight] = CalculatePercentilesByWeight :mrdocs: Used by getblockstats to get feerates at different percentiles by weight == Synopsis Declared in `<rpc/blockchain.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void CalculatePercentilesByWeight( xref:CAmount.adoc[CAmount] result[], std::vector<std::pair<CAmount, int64_t>>& scores, int64_t total_weight); ---- == Parameters [cols="1,4"] |=== | Name| Description | *result* | Output array filled with the fee rate at each percentile. | *scores* | The (fee, weight) pairs to compute percentiles from. | *total_weight* | The total weight across all `scores.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#