Learn R Programming

distcomp (version 1.3-3)

makeWorker: Make a worker object given a definition and data

Description

The function makeWorker returns an object of the appropriate type based on a computation definition and sets the data for the object. The types of objects that can be created depend upon the available computations

Usage

makeWorker(defn, data, pubkey_bits = NULL, pubkey_n = NULL, den_bits = NULL)

Value

a worker object of the appropriate class based on the definition

Arguments

defn

the computation definition

data

the data for the computation

pubkey_bits

the number of bits for the public key (used only if he is TRUE in computation definition)

pubkey_n

the n for public key (used only if he is TRUE in computation definition)

den_bits

the number of bits for the denominator (used only if he is TRUE in computation definition)

See Also

availableComputations()