de.unihalle.informatik.Alida.demo
Class MatrixSum
java.lang.Object
de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.demo.MatrixSum
- All Implemented Interfaces:
- ALDConfigurationValidator, ALDOperatorExecutionProgressEventListener, EventListener
@ALDAOperator(genericExecutionMode=ALL,
level=APPLICATION)
public class MatrixSum
- extends ALDOperator
Demo operator to calculate colum or row sums of a 2D array.
- Author:
- posch
Method Summary |
Double[] |
getSums()
Returns the calculated sums. |
protected void |
operate()
This method does the actual work and needs to be implemented by every
subclass. |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, print, print, print, printInterface, printInterface, readHistory, readResolve, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatrixSum
public MatrixSum()
throws ALDOperatorException
- Default constructor.
- Throws:
ALDOperatorException
MatrixSum
public MatrixSum(Double[][] _matrix)
throws ALDOperatorException
- Constructor.
- Parameters:
_matrix
- Input matrix.
- Throws:
ALDOperatorException
operate
protected void operate()
throws ALDOperatorException
- Description copied from class:
ALDOperator
- This method does the actual work and needs to be implemented by every
subclass.
- Specified by:
operate
in class ALDOperator
- Throws:
ALDOperatorException
getSums
public Double[] getSums()
- Returns the calculated sums.
- Returns:
- row or column wise sums
Copyright © 2010–2014 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.