/* (non-Javadoc)
* @see ca.eandb.jmist.framework.ParallelizableJob#finish()
*/
public void finish() throws IOException {
MatlabWriter matlab = new MatlabWriter(createFileOutputStream("tm.mat"));
int numInSensors = worker.incidentCollector.sensors();
int numOutSensors = worker.exitantCollector.sensors();
matlab.write("sca", sca, new int[]{ numOutSensors, numInSensors, channels.length, specimens.length });
matlab.write("abs", abs, new int[]{ numInSensors, channels.length, specimens.length });
matlab.write("cast", cast, new int[]{ numInSensors, channels.length, specimens.length });
matlab.write("specimens", specimenNames);
matlab.write("channels", channelNames);
matlab.write("adjoint", worker.adjoint);
writeCollectorSphere("incident", worker.incidentCollector, matlab);
writeCollectorSphere("exitant", worker.exitantCollector, matlab);
matlab.close();
}