|  | ## Cross Distances

#### Synopsis

Calculates the distance between each example of a request to each example of a reference set.

#### Description

This operator creates an exampleSet containing the distances between each example of the request exampleSet and the k nearest of the reference exampleSet.

This operator needs ID attributes in both example sets in order to work. If not present, new ones are created.

#### Input

- request set: expects: ExampleSet
- reference set: expects: ExampleSet

#### Output

- result set:
- request set:
- reference set:

#### Parameters

- measure types: The measure type
- mixed measure: Select measure
- nominal measure: Select measure
- numerical measure: Select measure
- divergence: Select divergence
- kernel type: The kernel type
- kernel gamma: The kernel parameter gamma.
- kernel sigma1: The kernel parameter sigma1.
- kernel sigma2: The kernel parameter sigma2.
- kernel sigma3: The kernel parameter sigma3.
- kernel degree: The kernel parameter degree.
- kernel shift: The kernel parameter shift.
- kernel a: The kernel parameter a.
- kernel b: The kernel parameter b.
- only top k: Only calculate the k nearest to each request example.
- k: Determines how many of the nearest examples are shown in the result.
- search for: Determines if the nearest or the farthest distances should be selected.

#### ExampleProcess