util-stepfunc: Step functions

stepfuncR Documentation

Step functions

Description

Step functions for relaxation methods

Usage

purestep(k)
decrstep(k, param)
decrstep5(k)
decrstep10(k)
decrstep20(k)

Arguments

k

iteration number.

param

parameter for the decreasing step function after which the step decreases.

Details

The decrstep function is a decreasing step serie such that decrstep(k) equals to 1/2/(k - param) when k>param, 1/2, otherwise. Functions decrstep5, decrstep10, decrstep20 are just wrappers of decrstep.

The purestep function implements a constant step serie equaled to 1.

Value

A numeric.

Author(s)

Christophe Dutang

See Also

See also GNE and GNE.fpeq.

Examples


cbind(
purestep(1:20),
decrstep(1:20, 7),
decrstep5(1:20),
decrstep10(1:20),
decrstep20(1:20)
)


GNE documentation built on March 31, 2023, 9:25 p.m.