samplend: Sample an nd-array evenly by ratio.

Description Usage Arguments Value

Description

Like mapnd() and mapnd_col(), for performance consideration, samplend_col is strongly encouraged is a sampling function is used.

Usage

1
2
3
samplend(x, ratio = 1L, func = NULL, along = 1L, ...)

samplend_col(x, ratio = 1L, colFunc = NULL, along = 1L, ...)

Arguments

x

an nd-array.

ratio

a sampling ratio.

func

a sampling function.

along

the axis/dimension to sample along.

...

passed to func/colFunc.

colFunc

a column function.

func_name

a optimised function name.

Value

a sampled nd-array.


Crystal-YWu/abftools documentation built on May 10, 2019, 8:22 a.m.