scale_01: Scale from [0, xmax] to (0,1). Values exactly at 0 are...

Description Usage Arguments Value

View source: R/marginal_methods.R

Description

Scale from [0, xmax] to (0,1). Values exactly at 0 are shifted up by an offset to stabilize the boundary. All other values are scaled to avoid the boundary at 1.

Usage

1
scale_01(x, xmax, scale, zero_offset)

Arguments

x

A vector of samples

xmax

Maximum allowable x value. If NA, function returns the input values.

scale

Scaling factor (0,1] to move maximum values off boundary at 1

zero_offset

Amount to shift minimum values off the boundary at 0 in the (0,1) domain

Value

The vector of samples rescaled to [0,1]


kdayday/forecasting documentation built on Oct. 7, 2020, 7:16 p.m.