decodeSlof: decodeSlof

Description Usage Arguments Details Value See Also Examples

View source: R/RcppExports.R

Description

Decodes data encoded by encodeSlof

The return will include exactly (|data| - 8) / 2 doubles.

Usage

1

Arguments

data

pointer to array of bytes to be decoded (need memorycont. repr.)

Details

Note that this method may throw a const char* if it deems the input data to be corrupt.

Value

the number of decoded doubles

See Also

[encodeSlof]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
## Intensity array to encode
### NOTE: For the sake of this example, I have broken the intensity vector into several parts
###       to avoid Rd line widths (>100 characters) issues with CRAN build checks.
int_array1 <- c(0.71773432,  0.43443741,  1.71883610, 0.13220307,  0.90664242)  
int_array2 <- c(0.00000000, 0.00000000,  0.64213755,  0.43443741, 0.47221479)
## Comcatenate into one intensity array
int_array <- c(int_array1, int_array2)
## Encode intensity array using encodeSlof
int_encode <- encodeSlof( int_array, 16 )

## End(Not run)

RMSNumpress documentation built on Feb. 5, 2021, 1:07 a.m.