Generates a sequence of values based on a model for ascending or descending patterns.

model_ascending(input, incl = 1, ro = range(input))

model_descending(input, dcl = 1, ro = range(input))

Arguments

input

A numeric vector serving as the basis for generating the sequence.

incl, dcl

An optional parameter controlling the inclination/declination of the sequence.

ro

A numeric vector of length 2 specifying the range of values for the output sequence. Default is the range of the input vector.

Value

A numeric vector representing the generated ascending or descending sequence.

Details

This function generates a sequence of values based on the input vector and inclination parameter. It can produce either an ascending or descending sequence depending on the sign of the inclination parameter. You can also specify a custom range for the output sequence using the 'ro' parameter.