It is often necessary to assign a series of discrete values to continuosly variable data sequenced by time, position, etc., thereby parsing the data into fewer and larger segments of variable width. The 'segment' utility takes an input data stream as a Hidden Markov Model and applies the Viterbi algorithm to find the most likely segmentation path through the data.
To install segment, simply extract the download file into some folder on your computer:
$ cd /path/to/some/folder
$ tar -xzf segment-<#.#.#>.tar.gz
where #.#.# is your segment version (e.g. 1.0.0).
In most cases you will want to add ‘/path/to/some/folder/segment-<#.#.#>’ to your system PATH variable so that it is available to you from any server directory by simply typing ‘segment’. Details of how to do this will depend on your computer and account configuration.