RATS 10.1
RATS 10.1

Instructions /

CSAMPLE Instruction

Home Page

← Previous Next →

CSAMPLE( options )   cseries start end newcseries newstart

CSAMPLE selects entries from a complex series to reduce the number of ordinates. It creates newcseries by selecting only one entry per sampling interval from cseries. The CPRINT and CTOR instructions have built-in options which accomplish much the same thing.

Parameters

cseries

source series

start, end

range to transform, by default, range of cseries

newcseries

result series, by default, overwrites cseries

newcstart

start for newcseries, by default, start

Options

INTERVAL=sampling interval [1]

This is the width of the sampling interval.

Example

freq  5 384

 ...

csample(interval=3) 1 1 384 2

 

Series 2 is set equal to entries 1,4,7,... from series 1.

 


Copyright © 2025 Thomas A. Doan