lightlab.util.data.function_inversion module

Finding the x-value that provides a targeted y-value for measured functions

Summary

Functions:

descend From the start index, descend until reaching a threshold level and return that index If it runs into the invalidIndeces or an edge, returns i at the edge of validity and False for validPeak
interpInverse Gives a float representing the interpolated x value that gives y=threshVal

Reference

descend(yArr, invalidIndeces, startIndex, direction, threshVal)[source]

From the start index, descend until reaching a threshold level and return that index If it runs into the invalidIndeces or an edge, returns i at the edge of validity and False for validPeak

interpInverse(xArrIn, yArrIn, startIndex, direction, threshVal)[source]

Gives a float representing the interpolated x value that gives y=threshVal