kgen_linear - generate a piecewise linear data set.
LIBRARY CALL
int kgen_linear(
int num,
double sample,
double minimum,
double maximum,
double period,
double rise,
double fall,
double width,
double *vect)
INPUT
num - number of elements in vector
sample - sampling frequency
minimum - minimum value of data set.
maximum - maximum value of the data set.
period - period of function
rise - rise time of function
fall - fall time of function
width - width (when high) of pulse
OUTPUT
vect - a vector containing the generated set of
piecewise linear numbers.
RETURN VALUE
TRUE (1) on success, FALSE (0) otherwise
DESCRIPTION
Generates a one dimensional "piecewise linear" data
set. A piecewise linear data set is a data set composed
of connected end-to-end lines.
By properly setting arguments to this
routine, you can generate impulse data
(spikes), triangular waves, sawtooth waves,
reverse sawtooth waves, and square waves.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/klibm/src/signal.c
SEE ALSO
klibm(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.