Teetool
Probabilistic modelling of trajectories
Namespaces | Functions
helpers.py File Reference

Namespaces

 teetool.helpers
 
 teetool
 This module contains the Basis class.
 

Functions

def teetool.helpers.getDistinctColours (ncolours, colour=None)
 a function to obtain n distinct colours (based on the colourspace spread into hue space), inspired by https://stackoverflow.com/questions/470690/how-to-automatically-generate-n-distinct-colors More...
 
def teetool.helpers.find_nearest (original_values, target_values)
 function to find nearest values in an array, perfect for reducing the number of datapoints More...
 
def teetool.helpers.nearest_spd (A)
 nearestSPD - the nearest (in Frobenius norm) Symmetric Positive Definite matrix to A More...
 
def teetool.helpers.get_trajectories (ntype=0, ndim=3, ntraj=50, npoints=100, noise_std=.5)
 function to generate some distributed trajectories More...
 
def teetool.helpers.in_hull (p, hull)
 Test if points in p are in hull More...
 
def teetool.helpers.unique_rows (a)
 function to find unique rows More...
 
def teetool.helpers.gauss_logp (y, ndim, c, A)
 function to evaluate the Gaussian log likelihood More...
 
def teetool.helpers.gauss (y, ndim, c, A)
 function to evaluate the Gaussian (normal distribution) More...
 
def teetool.helpers.gauss_logLc (y, ndim, cc, cA)
 function to evaluate the Gaussian log likelihood in cell-form More...
 
def teetool.helpers.getMaxOutline (ndim)
 simple function to obtain infinite outline based on dimensionality More...
 
def teetool.helpers.getGridFromResolution (outline, resolution)
 function to generate a grid based on outline and resolution More...
 
def teetool.helpers.getDimension (cluster_data)
 finds dimension D based on cluster_data More...
 
def teetool.helpers.getMinMax (cluster_data)
 find minimum/maximum of the cluster data (x, Y), x-component. More...
 
def teetool.helpers.normalise_data (cluster_data)
 normalise the cluster_data in x-domain More...
 
def teetool.helpers.getNorm (x, tuple_min_max)
 returns a normalised array based on a specified minimum/maximum More...
 
def teetool.helpers.get_cluster_data_outline (cluster_data)
 returns the outline based on cluster_data More...
 
def teetool.helpers.get_cluster_data_norm (cluster_data, outline=None)
 returns a normalised cluster_data based on outline More...