MCPcopy Create free account
hub / github.com/LAStools/LAStools / getfreq

Method getfreq

LASzip/unused/rangemodel.cpp:212–215  ·  view source on GitHub ↗

retrieval of estimated frequencies for a symbol */ sym symbol for which data is desired; must be <n */ sy_f frequency of that symbol */ lt_f frequency of all smaller symbols together */ the total frequency is 1<<LG_TOTF */

Source from the content-addressed store, hash-verified

210/* lt_f frequency of all smaller symbols together */
211/* the total frequency is 1<<LG_TOTF */
212void RangeModel::getfreq(U32 sym, U32 *sy_f, U32 *lt_f )
213{
214 *sy_f = cf[sym+1] - (*lt_f = cf[sym]);
215}
216
217/* find out symbol for a given cumulative frequency */
218/* lt_f cumulative frequency */

Callers 2

encodeSymbolMethod · 0.80
decodeSymbolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected