DataView.GetAttachedDouble

Prototypes

double GetAttachedDouble( String sName, double dDefaultValue )

Return Value

The return value is the attached double-precision value. If there is no attachment with the specified name, the return value is dDefaultValue.

Parameters

String sName
The name of the attachment.

double dDefaultValue
The value to return if there is no attachment with the specified name.

Remarks

This method returns the attachment with the specified name. The attachment must have been added using the method AddAttachedDouble.

The DataView class enables you to add attachments to a DataView. This enables you to associate additional information about a DataView with the DataView itself. The DataView does not use your attachments.

Example
x = rannor( 1:100 );
declare Histogram plot = Histogram.Create( "Example", x );

plot.AddAttachedDouble( "X Mean", x[:] );

mx = plot.GetAttachedDouble( "X Mean", . );
print mx;
See Also

DataView.AddAttachedDouble