java.lang.Object
org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase<FittingModel,OperationData>
uk.ac.diamond.scisoft.analysis.processing.operations.FittingOperation
All Implemented Interfaces:
IOperation<FittingModel,OperationData>

public class FittingOperation extends AbstractOperationBase<FittingModel,OperationData>
  • Constructor Details

    • FittingOperation

      public FittingOperation()
  • Method Details

    • getId

      public String getId()
      Returns:
      The unique id for this operation.
    • execute

      public OperationData execute(org.eclipse.january.dataset.IDataset data, org.eclipse.january.IMonitor monitor) throws OperationException
      Description copied from interface: IOperation
      The execute method operates on the data set last send via setDataset() and the information specific to this operation provided and returns the processed data in the form of an IDataset Multiple setData(..) and execute methods may be called. In addition execute() may be called multiple times for operations such as differential. Each time operating on the result of the last execution.
      Specified by:
      execute in interface IOperation<FittingModel,OperationData>
      Specified by:
      execute in class AbstractOperationBase<FittingModel,OperationData>
      Returns:
      dataset which is the result of this operation.
      Throws:
      OperationException
    • getInputRank

      public OperationRank getInputRank()
      Description copied from interface: IOperation
      Gets the rank of input data for the operations algorithm. You might be iterating 4D data but when this operation is run on a slice of it, it must be done with a fixed input rank.
      Returns:
      rank of slice data which we accept. For instance for integration we input 2(image) and output 1(integration)
    • getOutputRank

      public OperationRank getOutputRank()
      Description copied from interface: IOperation
      Gets the rank of output data for the operations algorithm. You might be iterating 4D data but when this operation is run on a slice of it, it must be done with a fixed input rank and this input will result in a fixed output rank.
      Returns:
      rank of output data which we return. For instance for integration we input 2(image) and output 1(integration)