Calculate BHATTACHARYYA distances between pairs of classes.
Calculates the Bhattacharyya distances between pairs of classes in a statistics file. If a specified number of classes or bands (features) are to be analyzed, the program will interactively prompt for class names and combinations of bands to be used.
- INSTAT
- Input statistics file. Contains the means and covariances for each class to be analyzed.
- NCLASS(--)
- Number of classes. The number of classes to be analyzed that will be specified interactively. The default is to use all classes.
- BANDOPT(--)
- Band option. Number of band sets to be processed. (See User Note 1).
= --: All bands = N: All combination of N bands = -N: N band sets specified interactivelyThe user may select the band sub-sets (features) to be analyzed. By default all bands will be used together in a single set.If BANDOPT = N, then all possible combinations of N bands will be used. For example, with a 4 band file and BANDOPT = 3 distances will be calculated for:
(a) BANDS 1,2,3 (b) BANDS 1,2,4 (c) BANDS 1,3,4 (d) BANDS 2,3,4If BANDOPT = -N, the user will be prompted interactively for N feature sets. This allows the user to vary the number of bands in each set.
- PRINT(TERM)
- Output destination.
= TERM: Terminal = LP: Line printer = filename: User supplied filename
BDIST computes the Bhattacharyya distance between any two of the four classes specified interactively. All possible combinations of two bands are used.
Bhattacharyya distance is a measure of separability between classes and may therefore be used to assess the quality of the statistics prior to classification.
Distances are calculated for specified features sets that consist of subsets of the bands in the file. For each feature set, the pairwise distance is given by:
T -1 D = 0.25(M -M ) (C + C ) (M -M ) ij i j i j i j | C + C | i j +0.5 ln (-----------------) 1/2 1/2 2 | C | | C | i j where Dij = Bhattacharyya distance between classes i and j Ci = covariance matrix for class i Cj = covariance matrix for class j Mi = mean vector for class i Mj = mean vector for class jThe average distance for all class pairs is also calculated.
The user may specify the number of classes to be analyzed. Unless all the classes are specified, the user will be interactively prompted for class names.
The determinant of the covariance matrix for class nn is less than or equal to zero. The distances of all class pairs involving that class are set to -1.0.
BDIST cannot be run in batch mode when NCLASS or BANDOPT is set to specify values interactively.
Check the statistics file or specify for all available classes in the statistics file.
The user has only three attempts to enter a valid class name.
Check the statistics file.
Check the statistics file.
Regenerate the statistics file containing the statistics for class # nn.
Regenerate the statistics file containing the statistics for class # nn.
(a) bands 1, 2, 3 (b) bands 1, 2, 4 (c) bands 1, 3, 4 (d) bands 2, 3, 4
o By selecting to specify feature sets interactively for up to a total of N feature sets. For example, if the user selects to process three feature sets, the selections are:
(a) number of bands=4: bands 1, 2, 3, 4 (b) number of bands=2: bands 1, 4 (c) number of bands=3: bands 1, 3, 4
By default, a single feature set will be analyzed consisting of all bands.