data.root: Objective function value of one stratum (data)

View source: R/data.root.R

data.rootR Documentation

Objective function value of one stratum (data)

Description

Calculates the value of the objective function for one stratum, given the remaining range d and the stratum width y.

Usage

data.root(d, y, c, my_env)

Arguments

d

numeric: remaining distance/range on the (scaled) axis

y

numeric: first stratum width on the (scaled) axis

c

numeric: per stratum cost multiplier (Ch[k])

my_env

environment: holds distribution name, parameters and scaling

Details

Used by the DP recurrences to evaluate the stratification objective at a specific remaining distance 'd' and first-stratum width 'y', given stratum cost 'c' and constants tucked in 'my_env.'

Value

numeric: sqrt(objective) or -1 if branch is infeasible/invalid


stratifyR documentation built on Nov. 13, 2026, 9:06 a.m.