R: Create a master object to control worker objects generated by...

SVDMaster {distcomp} | R Documentation

## Create a master object to control worker objects generated by `SVDWorker`

### Description

`SVDMaster` objects instantiate and run a distributed SVD computation

### Usage

    SVDMaster

### Format

An `R6Class` generator object

### Methods

`SVDMaster$new(defn, debug = FALSE)`

  Create an SVD master object with the specified computation definition. The debug flag is used for debugging computations

`kosher()`

  Check if inputs and state of object are sane. For future use

`updateV(arg)`

  Return an updated value for the V vector

`updateU(arg)`

  Return an updated value for the U vector

`fixFit(v, d)`

  Construct the residual matrix using given the v vector and d so far

`reset()`

  Initialize the computation

`dimX(, ...)`

  Return the dimensions of the matrix

`normU(arg, ...)`

  Normalize U vector by `arg`

`addSite(name, url = NULL, worker = NULL)`

  Add a worker site for participating in the distributed computation. Exactly one of `url` or `worker` should be specified

`run(k = private$k, thr = 1e-8, max.iter = 100)`

  Run the SVD computation until either the threshold is reached or the max.iter number of iterations are used up

`summary()`

  Return the summary of results

### See Also

`SVDWorker` which goes hand-in-hand with this object

[Package distcomp version 1.1 Index]