atsim.potentials.tableforms

Module Contents

Classes

Cubic_Spline_Table_Form(x_data, y_data) Potential form that takes tabulated data and returns interpolated values.
class atsim.potentials.tableforms.Cubic_Spline_Table_Form(x_data, y_data)[source]

Bases: object

Potential form that takes tabulated data and returns interpolated values.

This potential uses cubic spline interpolation. It is simply a wrapper around the scipy.interpolate.InterpolatedUnivariateSpline class

config_label = cubic_spline[source]
is_potential = True[source]
interpolant[source]

This class is a wrapper around instances of scipy.interpolate.InterpolatedUnivariateSpline This property returns the scipy object used internally

__call__(self, x)[source]
Returns:interpolated value at x
deriv(self, x)[source]
Returns:derivative of potential form at x
deriv2(self, x)[source]
Returns:second derivative of potential form at x