public final class VectorMatrixMultiplicationJob extends Object
This class handles the three-way multiplication of the digonal matrix and the Markov transition matrix inherent in the Eigencuts algorithm. The equation takes the form:
W = D^(1/2) * M * D^(1/2)
Since the diagonal matrix D has only n non-zero elements, it is represented as a dense vector in this job, rather than a full n-by-n matrix. This job performs the multiplications and returns the new DRM.
Modifier and Type | Class and Description |
---|---|
static class |
VectorMatrixMultiplicationJob.VectorMatrixMultiplicationMapper |
Modifier and Type | Method and Description |
---|---|
static DistributedRowMatrix |
runJob(org.apache.hadoop.fs.Path markovPath,
Vector diag,
org.apache.hadoop.fs.Path outputPath)
Invokes the job.
|
static DistributedRowMatrix |
runJob(org.apache.hadoop.fs.Path markovPath,
Vector diag,
org.apache.hadoop.fs.Path outputPath,
org.apache.hadoop.fs.Path tmpPath) |
public static DistributedRowMatrix runJob(org.apache.hadoop.fs.Path markovPath, Vector diag, org.apache.hadoop.fs.Path outputPath) throws IOException, ClassNotFoundException, InterruptedException
markovPath
- Path to the markov DRM's sequence filesIOException
ClassNotFoundException
InterruptedException
public static DistributedRowMatrix runJob(org.apache.hadoop.fs.Path markovPath, Vector diag, org.apache.hadoop.fs.Path outputPath, org.apache.hadoop.fs.Path tmpPath) throws IOException, ClassNotFoundException, InterruptedException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.