bestPermutation: Function to obtain the best permutation for a classification...

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

When a classificator is run on a set of 1,2,..., k groups it returns a possibile classification schemes, but it does not know the correspondence of original gruoups and given groups. This function return the permutation of original group versus output group that maximizes the trace of the confusion matrix.

Usage

1
bestPermutation(origClass, inizOutput)

Arguments

origClass

original group identification vector

inizOutput

classified group identification vector

Details

Program fails if number of original groups differs from identified groups as in inizOutput.

Value

An object of class bestPermutation containing:

permutation

Best permutation

groups

Classification with respect to best permutation

Note

Shall be improved

Author(s)

Giorgio Spedicato

References

Giorgio Spedicato

See Also

cwrEm

Examples

1
2
3
4
#non sense example
x=c(1,2,3)
y=c(1,2,3)
bestPermutation(x,y)

cwm documentation built on May 1, 2019, 9:19 p.m.