public void run() { final EdgeData data = source.getValue(); final int nodes = data.getSize(); eigenMetric.eigensolve("V", nodes, data); VertexData result = new VertexData(nodes); for (int i = 0; i < nodes; i++) { result.set(i, eigenMetric.evResult[nodes + i]); } target.setValue(result); }
public MetricVDataEigenGap() { eigenMetric.init(10); }