downsample_mapping: Downsample a sequence of numbers.

View source: R/downsample_mapping.R

downsample_mappingR Documentation

Downsample a sequence of numbers.

Description

downsample_mapping downsamples a sequence of numbers, 1 through n and returns a vector of indices, centered on the middle number of the original sequence.

Usage

downsample_mapping(original_n, down_n)

Arguments

original_n

An integer giving the length of the original sequence of numbers.

down_n

The desired size of the downsampled sequence.

Value

A list containing the downsampling factor and a vector a downsampled indices.


barefootbiology/heyexr documentation built on July 9, 2022, 3:35 a.m.