public void run() { final int myNumber = ai.getAndIncrement(); for ( int i = 0; i < pairs.size(); i++ ) if ( i%numThreads == myNumber ) { final ComparePair pair = pairs.get( i ); pair.model = pairwiseMatching( pair.inliers, peaks.get( pair.indexA ), peaks.get( pair.indexB ), zStretching, zStretching, params, pair.indexA + "<->" + pair.indexB ); if ( pair.model == null ) { pair.inliers.clear(); pair.model = params.model.copy(); } } } });
final List< Point > q ) final M m = copy(); final List< PointMatch > currentMatches = new ArrayList< PointMatch >(); final List< PointMatch > previousMatches = new ArrayList< PointMatch >();
final List< Point > q ) final M m = copy(); final List< PointMatch > currentMatches = new ArrayList< PointMatch >(); final List< PointMatch > previousMatches = new ArrayList< PointMatch >();
throw new NotEnoughDataPointsException( candidates.size() + " data points are not enough to solve the Model, at least " + getMinNumMatches() + " data points required." ); final M copy = copy();
throw new NotEnoughDataPointsException( candidates.size() + " data points are not enough to solve the Model, at least " + getMinNumMatches() + " data points required." ); final M copy = copy();
model2 = params.model.copy();