LingPy

This documentation is for version 2.0.dev, which is not released yet.

lingpy.compare.borrowing.trebor.TreBor.get_GLS

TreBor.get_GLS(mode='weighted', ratio=(1, 1), restriction=3, output_gml=False, output_plot=False, verbose=False, tar=False)

Create gain-loss-scenarios for all non-singleton paps in the data.

Parameters :

mode : string (default=”weighted”)

Select between “weighted” and “restriction”.

ratio : tuple (default=(1,1))

If “weighted” mode is selected, define the ratio between the weights for gains and losses.

restriction : int (default=3)

If “restriction” is selected as mode, define the maximal number of gains.

output_gml : bool (default=False)

If set to c{True}, the decisions for each GLS are stored in a separate file in GML-format.

tar : bool (default=False)

If set to c{True}, the GML-files will be added to a compressed tar-file.

This Page