Represents a vector of any type in Kst. Some vectors are editable, while others are not. This class behaves just as a JavaScript array, but has additional properties and methods.
Inherits: Object
Collection class: VectorCollection
resize ( size )
interpolate ( i, n )
zero ( )
update ( )
valueAt ( index )
Array array - The array to be copied.
number size - The new size of the vector. Should be >= 2.
Throws: GeneralError - Throws this exception if the vector is not editable.
number i - The sample number to obtain the interpolated value of.
number n - The number of samples to interpolate to.
Sets all values in the vector to zero.
Throws: GeneralError - Throws this exception if the vector is not editable.
Updates the statistical values associated with a vector.
Throws: GeneralError - Throws this exception if the vector is not editable.
number index - The sample number to obtain the value of. A negative value of -n returns the n'th sample from the end of the vector..
True if the vector is editable by the user. This should be checked before attempting to modify a vector in any way.
Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team