| 1037 | } |
| 1038 | |
| 1039 | void IntegerMatcher::DisplayProtoDebugInfo( |
| 1040 | INT_CLASS ClassTemplate, |
| 1041 | BIT_VECTOR ProtoMask, |
| 1042 | BIT_VECTOR ConfigMask, |
| 1043 | const ScratchEvidence& tables, |
| 1044 | bool SeparateDebugWindows) { |
| 1045 | uinT16 ProtoNum; |
| 1046 | uinT16 ActualProtoNum; |
| 1047 | PROTO_SET ProtoSet; |
| 1048 | int ProtoSetIndex; |
| 1049 | |
| 1050 | InitIntMatchWindowIfReqd(); |
| 1051 | if (SeparateDebugWindows) { |
| 1052 | InitFeatureDisplayWindowIfReqd(); |
| 1053 | InitProtoDisplayWindowIfReqd(); |
| 1054 | } |
| 1055 | |
| 1056 | |
| 1057 | for (ProtoSetIndex = 0; ProtoSetIndex < ClassTemplate->NumProtoSets; |
| 1058 | ProtoSetIndex++) { |
| 1059 | ProtoSet = ClassTemplate->ProtoSets[ProtoSetIndex]; |
| 1060 | ActualProtoNum = ProtoSetIndex * PROTOS_PER_PROTO_SET; |
| 1061 | for (ProtoNum = 0; |
| 1062 | ((ProtoNum < PROTOS_PER_PROTO_SET) && |
| 1063 | (ActualProtoNum < ClassTemplate->NumProtos)); |
| 1064 | ProtoNum++, ActualProtoNum++) { |
| 1065 | /* Compute Average for Actual Proto */ |
| 1066 | int temp = 0; |
| 1067 | for (int i = 0; i < ClassTemplate->ProtoLengths[ActualProtoNum]; i++) |
| 1068 | temp += tables.proto_evidence_[ActualProtoNum][i]; |
| 1069 | |
| 1070 | temp /= ClassTemplate->ProtoLengths[ActualProtoNum]; |
| 1071 | |
| 1072 | if ((ProtoSet->Protos[ProtoNum]).Configs[0] & (*ConfigMask)) { |
| 1073 | DisplayIntProto(ClassTemplate, ActualProtoNum, temp / 255.0); |
| 1074 | } |
| 1075 | } |
| 1076 | } |
| 1077 | } |
| 1078 | |
| 1079 | |
| 1080 | void IntegerMatcher::DisplayFeatureDebugInfo( |
nothing calls this directly
no test coverage detected