URI: http://www.qualityml.org/1.0/metrics/RelativeCorrespondenceMatrix
Name: Relative correspondence matrix
Alternative names: Fidelity matrix (RCMs), Representativity matrix (RCMt)
Definition:

Given set of items classified by two different criteria, the relative correspondence matrix is an S x T matrix which matches the first classification (rows) against the second classification (columns) but relative to the total of items in a class of the first or the second classification.

RCMs(s,t) = (# items classified as class (s) in the first classification and as class (t) in the second classification) / # items classified as class (s) in the first classification

RCMs(t,s)

RCMt(s,t) = (# items classified as class (s) in the first classification and as class (t) in the second classification) / # items classified as class (t) in the second classification

RCMt(t,s)

Parameters: max value, relative to s (RCMs) or t (RCMt)
Source: ISO 19157
Categories: Thematic accuracy
Further information: Similar to http://www.qualityml.org/1.0/metrics/RelativeConfusionMatrix
XML schema:
<schema xmlns:qml="http://www.qualityml.org/1.0" 
xmlns:un="http://www.uncertml.org/2.0" 
xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.qualityml.org/1.0" 
elementFormDefault="qualified" attributeFormDefault="unqualified">
<import namespace="http://www.uncertml.org/2.0" schemaLocation="../../uncertml/2.0/uncertml.xsd"/>

<element name="RelativeCorrespondenceMatrix" type="qml:RelativeCorrespondenceMatrixType" substitutionGroup="qml:CorrespondenceMatrix"/>
<complexType name="RelativeCorrespondenceMatrixType">
<complexContent>
<extension base="qml:CorrespondenceMatrixType">
<attribute name="category">
<simpleType>
<restriction base="string">
<enumeration value="T"/>
<enumeration value="S"/>
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>

XML example:
<un:StatisticsCollection xmlns:qml="http://www.qualityml.org/1.0" 

   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

   xsi:schemaLocation="http://www.qualitymlorg/schemas/qualityml/1.0/qualityml.xsd">

<qml:RelativeCorrespondenceMatrix max="100">
<qml:categoriesT>Red Green Blue</qml:categoriesT>
<qml:categoriesS>1 2 3 4</qml:categoriesS>
<qml:values>1.57 3.14 6.28 1.57 3.14 6.28 1.57 3.14 6.28 1.57 3.14 6.28</qml:values>
</qml:RelativeCorrespondenceMatrix>

JSON example:
N/A
API example:
N/A
Value constraints: categories: any string
counts: any positive natural number