fixFlatFits: Fix Degenerate Stiffness Fits

Description Usage Arguments Details Value

Description

Sometimes parExtractStiffness fits portions of the force curve before the probe is in contact (resulting in a stiffness of ~0). These functions attempts to find these degenerate cases and produce a better fit.

Usage

1
2
fixFlatFits(fits, minRise=.1,debug=FALSE, numCores=-1)
forceNonFlatFits=function(fits,minRise=0.3,numCores=-1)

Arguments

fits

Fit data produced using the function parExtractStiffness

minRise

The percentage of the total force range that the fit curve must traverse to not be considered degenerate.

debug

if debug==TRUE each fit will be plotted (the user should press 'enter' to cycle through fits) in order to allow for tuning of fit parameters.

numCores

Number of cores to use for the computation. If numCores==-1 all available cores will be used

Details

If the fits being operated on by these functions cannot be fixed while honoring the other fit parameters set via parExtractStiffness fixFlatFits will leave the fit unchanged wheras forceNonFlatFits will increase the CPMaxF parameter until the minRise parameter can be satisfied.

Value

A new object of the type produced by parExtractStiffness containing the updated fits


nstone8/Rasylum documentation built on May 9, 2019, 8:18 a.m.