Miscellaneous

hxrsnd.plans.plan_stubs.euclidean_distance(device, device_fields, targets, average=None, filters=None)[source]

Calculates the euclidean distance between the device_fields and targets.

Parameters:
deviceDevice

Device from which to take the value measurements

device_fieldsiterable

Fields of the device to measure

targetsiterable

Target value to calculate the distance from

averageint, optional

Number of averages to take for each measurement

Returns:
distancefloat

The euclidean distance between the device fields and the targets.