weigh_and_bin: Weigh and sum into bins.

Description Usage Arguments Value

View source: R/summ-func.r

Description

Weigh the value of the f-function for each pair, sum together results of the same bin and place the sum in the correct bin.

Usage

1
weigh_and_bin(f_value, weight, idx_vec, n_bin)

Arguments

f_value

A vector of values from the mark test function corresponding to each pair of points.

weight

A vector of weights for each pair of points.

idx_vec

A vector of bin indices to guide each pair of points into the correct bin.

n_bin

The amount of bins that the returned vector should have.

Value

A rho_f vector with length of n_bin.


myllym/marksummary documentation built on May 23, 2019, 11:59 a.m.