Learn R Programming

cmfilter (version 0.9.1)

+.cmf: Combine the results of multiple cmf objects into one

Description

This function combines two cmf objects and returns one cmf object with the combined results. This helps with combining results done over multiple runs, for example in high-performance computing.

Usage

# S3 method for cmf
+(x, y)

Arguments

x

a cmf object

y

a cmf object

Value

a cmf object with combined results

Examples

Run this code
# NOT RUN {
# generate some data
dat <- generateMed(a = (1:10)/20, b = (1:10)/20)
# create two different cmf objects on this data
res_1 <- cmf(dat, nStarts = 500)
res_2 <- cmf(dat, nStarts = 500)
# Combine the results using the + operator
res_1 + res_2

# }

Run the code above in your browser using DataLab