Samples.to_file (function)
def to_file(self, filename, **kwargs)
Save the json representation of the distribution object to a file.
The resulting file can be restored to the original object via distl.from_file.
See also:
filename
(string): path to the file to be created (will overwrite if already exists)**kwargs
: all keyword arguments will be sent to json.dumps
- string: the filename