Learn R Programming

ClustImpute (version 0.2.4)

default_wf: K-means clustering with build-in missing data imputation

Description

Default weight function. One minus the return value is multiplied with missing(=imputed) values. It starts with 1 and goes to 0 at n_end.

Usage

default_wf(n, n_end = 10)

Arguments

n

current step

n_end

steps until convergence of weight function to 0

Value

value between 0 and 1

Examples

Run this code
# NOT RUN {
x <- 0:20
plot(x,1-default_wf(x))

# }

Run the code above in your browser using DataLab