BioSANS2020.analysis.numeric.sample_points

This module interpoltaes nsamp points from the trajectory.

Module Contents

Functions

sample_points(edata, nsamp=50000)

This function takes edata which is composed of numerical data and

BioSANS2020.analysis.numeric.sample_points.sample_points(edata, nsamp=50000)

This function takes edata which is composed of numerical data and their labels and returns interpolated points. Args:

edatatwo dimensional array of data & labels (data, label).

data is a 3D array where each row are the individual trajectories. Each trajectory is a 2D numpy array where the first column is time and the remaining columns are the corresponding components.

nsamp : number of points to sample from data

Returns:
sdatainterpolated data points with sdata[0] is time and the

remaining rows are interpolated data that corresponds to the time in sdata[0]

label_name : labels