OpenMPCD
Public Member Functions | Public Attributes | List of all members
MPCDAnalysis.Data2D.Data2D Class Reference

Public Member Functions

def __init__ (self, filename=None, minXValue=None)
 
def readFromFile (self, filename, minXValue)
 
def addPoint (self, point, value, error=None)
 
def sort (self)
 
def getNearestPoint (self, x)
 
def plot (self, plotEveryNthPoint=1)
 
def getArithmeticMean (self)
 
def getRootMeanSquaredDeviationFromArithmeticMean (self)
 
def getSimpleMovingAverageDict (self, windowsize)
 
def getAverageFromSimpleMovingAverage (self, windowsize)
 
def getLocalExtremaByComparisonFunction (self, comparisonFunction, includeBoundaries)
 
def getLocalMaxima (self, includeBoundaries=True)
 
def getLocalMinima (self, includeBoundaries=True)
 
def getLocalExtrema (self, includeBoundaries=True)
 
def getData (self, sortFirst=True)
 
def getKeysAndValues (self, sortFirst=True)
 
def getKeysAndValuesAndErrors (self, sortFirst=True)
 
def getSize (self)
 
def save (self, filename, sortFirst=True)
 
def writeTo (self, stream, sortFirst=True)
 

Public Attributes

 data
 
 errors
 

Detailed Description

Definition at line 6 of file Data2D.py.

Member Function Documentation

◆ save()

def MPCDAnalysis.Data2D.Data2D.save (   self,
  filename,
  sortFirst = True 
)
    Saves the data to the given filename.

    @param[in] filename  The file path to save to.
    @param[in] sortFirst Whether to sort the points first, so that their x coordinate is ascending.

Definition at line 225 of file Data2D.py.

◆ writeTo()

def MPCDAnalysis.Data2D.Data2D.writeTo (   self,
  stream,
  sortFirst = True 
)
    Writes the data to the given object.

    @param[in] stream    The object to write to.
    @param[in] sortFirst Whether to sort the points first, so that their x coordinate is ascending.

Definition at line 236 of file Data2D.py.


The documentation for this class was generated from the following file: