double function ( ) { double loc0 = 0.d ; int loc1 = 0 ; for ( int loc2 = 0 ; loc2 < xDim ; loc2 ++ ) { double loc3 ; if ( ( loc3 = getRANSACfittedFunction ( pos [ loc2 ] , mot [ loc2 ] ) . getParametersAsDoubleArray ( ) [ 0 ] ) != 0.d ) { loc0 += loc3 ; loc1 ++ ; } } loc0 /= loc1 ; return loc0 ; }
method to compute slope . all linear functions with a slope not equal to zero are averaged . concode_field_sep double[][] pos concode_elem_sep int xDim concode_elem_sep double[][] mot concode_elem_sep int yDim concode_elem_sep String filename concode_field_sep double getMaxMotion concode_elem_sep double[][] getMotion concode_elem_sep Function getLinearfittedFunction concode_elem_sep double getGlobalCompensationLinearScalingSimple concode_elem_sep void main concode_elem_sep double getGlobalCompensationLinearMinMax concode_elem_sep double[] getBilinearInterpolationDataPosition concode_elem_sep Function getRANSACfittedFunction concode_elem_sep double[][] getPosition concode_elem_sep double bilinearInterpolation concode_elem_sep double getInterpolatedGlobalCompensationLinearScaling concode_elem_sep double[] getBilinearInterpolationDataMotion concode_elem_sep boolean readOut