dot-clip_weights: Clip small/negative numerical noise out of a QP weight...

.clip_weightsR Documentation

Clip small/negative numerical noise out of a QP weight solution

Description

Clip small/negative numerical noise out of a QP weight solution

Usage

.clip_weights(w)

Arguments

w

Numeric vector of weights (possibly containing negative floating-point dust from the QP solve).

Value

A list with w (clipped weights), n_clipped (how many entries were negative before clipping), and max_abs_clipped (largest magnitude among the clipped entries, 0 if none).


sbwadjust documentation built on Oct. 10, 2026, 5:08 p.m.