This is the Moments documentation.

Get the seeds

moments.get_seeds(directory)[source]

This function gets all the seeds from our runs. :param directory: :return:

Get the paths

moments.get_data_paths(directory, seeds)[source]

Using the directory and the seeds create the paths to each position file. :param directory: :param seeds: :return:

Zero Moments

moments.zero_moment(pos)[source]

This calculates the total number of particles in the media. The 0th moment :param pos: :return:

nth moment

moments.mom(n, position, time, m0, norm=True)[source]

This method is used to compute the nth spatial moment, normalized or not :param n: :param position: :param time: :param m0: :param norm: :return:

Compute and save zero

moments.zero_moment_compute_and_save(seeds, paths, time, files)[source]

This function is used to compute all the zero moments involving our positional data and then saves them to files. :param seeds: :param paths: :param time: :param files: :return:

Compute and Save

moments.nth_moment_compute_and_save(nth, seeds, paths, time, files)[source]

This function is used to compute all the nth moments we specify involving our positional data and then saves them to files. :param seeds: :param paths: :param time: :param files: :return: