Click or drag to resize

MetricsCalculatorCalculateMetric Method (Double, Int32, Double, Int32, Int32, MetricType)

Calculate metric.

Namespace:  FinMath.ClusterAnalysis
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public static double CalculateMetric(
	double[] x,
	int xoffset,
	double[] y,
	int yoffset,
	int size,
	MetricType metricType
)

Parameters

x
Type: SystemDouble
Array of parameters values which characterize first object.
xoffset
Type: SystemInt32
Offset of the parameters values which characterize first object.
y
Type: SystemDouble
Array of parameters values which characterize second object.
yoffset
Type: SystemInt32
Offset of the parameters values which characterize second object.
size
Type: SystemInt32
Number of parameters in characteristic.
metricType
Type: FinMath.ClusterAnalysisMetricType
Metric type.

Return Value

Type: Double
Distance between two objects.
See Also