07-14-2005 08:05 AM
07-14-2005 08:11 AM
07-14-2005 08:12 AM
07-14-2005 08:17 AM
07-14-2005 10:47 PM
The question of whether to use arrays or clusters goes beyond whether or not the values are of the same datatype. Conceptually, a 1D array is a vector--an ordered set of numbers that together in aggregate represent something--like an analog waveform or a change in temperature over time. A cluster represents a group of distinct values.
For example, consider with three values: MyWeight, WifesWeight and DaughtersWeight. All three values are floats so they could be represented by a 3-element array. However, what vector quantity would that array be representing? As a vector, those three values are meaningless. The proper representation would be as a cluster because a cluster accurately models the data's structure--three distinct values.