public class RansacAlignerMethod extends Object implements MSDKMethod<FeatureTable>
Constructor and Description |
---|
RansacAlignerMethod(List<FeatureTable> featureTables,
MzTolerance mzTolerance,
RTTolerance rtTolerance,
String featureTableName,
double t,
boolean linear,
double dataPointsRate)
Constructor for RansacAlignerMethod.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel a running algorithm.
|
FeatureTable |
execute()
Performs the algorithm.
|
Float |
getFinishedPercentage()
Returns a number in the interval 0 to 1.0, representing the portion of the task that has
completed, or null if the algorithm has not yet started.
|
FeatureTable |
getResult()
Returns the result of this algorithm, or null.
|
public RansacAlignerMethod(@Nonnull List<FeatureTable> featureTables, @Nonnull MzTolerance mzTolerance, @Nonnull RTTolerance rtTolerance, @Nonnull String featureTableName, @Nonnull double t, @Nonnull boolean linear, @Nonnull double dataPointsRate)
Constructor for RansacAlignerMethod.
featureTables
- a List
object.dataStore
- a io.github.msdk.datamodel.datastore.DataPointStore
object.mzTolerance
- a io.github.msdk.util.MZTolerance
object.featureTableName
- a String
object.rtTolerance
- a io.github.msdk.util.RTTolerance
object.t
- a threshold value for determining when a data point fits a modelinear
- a Boolean
object.dataPointsRate
- % of datapoints from the data required to assert that a model fits well
to data. If it is 0, the variable will be set as 0.1public FeatureTable execute() throws MSDKException
execute
in interface MSDKMethod<FeatureTable>
MSDKException
- On any error@Nullable public Float getFinishedPercentage()
getFinishedPercentage
in interface MSDKMethod<FeatureTable>
@Nullable public FeatureTable getResult()
getResult
in interface MSDKMethod<FeatureTable>
public void cancel()
cancel
in interface MSDKMethod<FeatureTable>
Copyright © 2019. All rights reserved.