BGlib.be.analysis.utils.be_loopΒΆ

Created on Wed Jun 29 11:13:22 2016

@author: Rama K. Vasudevan, Stephen Jesse, Suhas Somnath, Chris R. Smith

Various helper functions for aiding loop fitting and projection

Functions

calc_switching_coef_vec

Calculates the physical loop parameters from the array of loop parameters.

calculate_loop_centroid

Calculates the centroid of a single given loop.

fit_loop

Given a single unfolded loop returns the results of the least squares fitting

generate_guess

Given a single unfolded loop and centroid return the intial guess for the fitting.

get_rotation_matrix

Returns the rotation matrix in 2D, given the angle theta

get_switching_coefs

param loop_centroid:

[x,y] position of loop centroid

loop_fit_function

9 parameter fit function

loop_fit_jacobian

Jacobian of 9 parameter fit function

projectLoop

This function projects a single loop cycle using the amplitude and phase vectors