Average(listofDFset, **kwargs)
Averages the given list of DFset objects into a single DFset, each function of which is an average of corresponding functions from all DFsets of the given list
- Parameters:
-
- listofDFset
- list of DFset-objects to average
- force (bool)
- force the averaging of DFs even if they are not alike (False)
- weights
- list of the weights for the averaging. Must have length of the corresponding DFset
- pots*
- set of potentials
- RcutNB*
- the upper range to extend the potentials.
Example:
rdf1 = MT.ReadRDF('file1.rdf')
rdf2 = MT.ReadRDF('file2.rdf')
rdf_average = MT.Average([rdf1, rdf2], weights=[1.0, 1.0])