QualityInformationFramework / qif-community

The online hub for the QIF community
Boost Software License 1.0
23 stars 17 forks source link

Distance between two features within a feature group #9

Closed GitHubDaveSmith closed 3 years ago

GitHubDaveSmith commented 3 years ago

Hi,

I was wondering if anybody could supply a sample of QIF that represents a Distance between characteristic that is applied between two features that belong to a group. For example, if my group consists of two cylinders and I want to know the distance between those cylinders I know that my 'DistanceBetweenCharacteristicNominal' will contain a 'FeatureNominalPairs' element that will reference the relevant features, but where is the reference made to the group feature to which these features belong?

A sample would be of great help.

Many thanks

daniel-campbell commented 3 years ago

Can you explain what you mean by "group"?

In the DistanceBetweenCharacteristicNominal you should find:

<FeatureNominalPairs n="1">
   <FeaturePair>
     <FirstFeature>1070</FirstFeature> 
     <SecondFeature>1068</SecondFeature> 
   </FeaturePair>
</FeatureNominalPairs>

And this would allow you to specify which features constitute the pairs. You can have more than 1 pair.

Does this answer your question, or did you have something else in mind?