Description Usage Arguments Details Value See Also
Encodes ion counts by taking the natural logarithm, and storing a fixed point representation of this. This is calculated as
unsigned short fp = log(d + 1) * fixedPoint + 0.5
1 | encodeSlof(data, fixedPoint)
|
data |
pointer to array of double to be encoded (need memorycont. repr.) |
fixedPoint |
fixed point to use for encoding (see optimalSlofFixedPoint) |
the result vector is exactly |data| * 2 + 8 bytes long
the number of encoded bytes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.