Dispmat: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Calculates the dispersion matrix of two spectral data sets. | Calculates the dispersion matrix of two spectral data sets. | ||
===Synopsis=== | ===Synopsis=== | ||
:[c,meansx,meansy,stdsx,stdsy] = dispmat(x,y,options); | :[c,meansx,meansy,stdsx,stdsy] = dispmat(x,y,options); | ||
===Description=== | ===Description=== | ||
Calculates a dispersion matrix, as defined by the options, of datasets x and y. | Calculates a dispersion matrix, as defined by the options, of datasets x and y. | ||
====INPUTS==== | ====INPUTS==== | ||
* '''x''' : (2-way array class "double" or "dataset") x-matrix for dispersion matrix. | * '''x''' : (2-way array class "double" or "dataset") x-matrix for dispersion matrix. | ||
* '''y''' : (2-way array class "double" or "dataset") y-matrix for dispersion matrix. | * '''y''' : (2-way array class "double" or "dataset") y-matrix for dispersion matrix. | ||
====OUTPUTS==== | ====OUTPUTS==== | ||
* '''c''' : dispersion matrix, as defined by options. | * '''c''' : dispersion matrix, as defined by options. | ||
* '''meansx''' : mean of x. | * '''meansx''' : mean of x. | ||
* '''meansy''' : mean of y. | * '''meansy''' : mean of y. | ||
* '''stdsx''' : standard deviation of x. | * '''stdsx''' : standard deviation of x. | ||
* '''stdsy''' : standard deviation of y. | * '''stdsy''' : standard deviation of y. | ||
===Options=== | ===Options=== | ||
* '''offsetx''' : [0] offset for x. | * '''offsetx''' : [0] offset for x. | ||
* '''offsety''' : [0] offset for y. | * '''offsety''' : [0] offset for y. | ||
* '''dispersion''' : [1] dispersion matrix calculated: | * '''dispersion''' : [1] dispersion matrix calculated: | ||
* '''1''': standardized, offset corrected | * '''1''': standardized, offset corrected | ||
* '''2''': length sqrt(nrows), offset corrected | * '''2''': length sqrt(nrows), offset corrected | ||
* '''3''': purity about mean, offset corrected | * '''3''': purity about mean, offset corrected | ||
* '''4''': purity about origin, offset corrected | * '''4''': purity about origin, offset corrected | ||
* '''5''': asynchronous, offset corrected | * '''5''': asynchronous, offset corrected | ||
===See Also=== | ===See Also=== | ||
[[corrspec]], [[corrspecengine]], [[purity]] | [[corrspec]], [[corrspecengine]], [[purity]] |
Revision as of 14:25, 3 September 2008
Purpose
Calculates the dispersion matrix of two spectral data sets.
Synopsis
- [c,meansx,meansy,stdsx,stdsy] = dispmat(x,y,options);
Description
Calculates a dispersion matrix, as defined by the options, of datasets x and y.
INPUTS
- x : (2-way array class "double" or "dataset") x-matrix for dispersion matrix.
- y : (2-way array class "double" or "dataset") y-matrix for dispersion matrix.
OUTPUTS
- c : dispersion matrix, as defined by options.
- meansx : mean of x.
- meansy : mean of y.
- stdsx : standard deviation of x.
- stdsy : standard deviation of y.
Options
- offsetx : [0] offset for x.
- offsety : [0] offset for y.
- dispersion : [1] dispersion matrix calculated:
- 1: standardized, offset corrected
- 2: length sqrt(nrows), offset corrected
- 3: purity about mean, offset corrected
- 4: purity about origin, offset corrected
- 5: asynchronous, offset corrected