scorer-arith {redist}R Documentation

Scoring function arithmetic

Description

redist_scorer functions may be multiplied by constants and/or added together to form linear combinations.

Usage

## S3 method for class 'redist_scorer'
x * fn2

## S3 method for class 'redist_scorer'
fn1 + fn2

## S3 method for class 'redist_scorer'
fn1 - fn2

Arguments

x

a numeric or a redist_scorer function, from scorers

fn2

a redist_scorer function, from scorers

fn1

a redist_scorer function, from scorers

Value

function of class redist_scorer


[Package redist version 4.2.0 Index]