diff options
author | Thomas White <taw@physics.org> | 2023-04-20 12:23:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-04-20 12:29:43 +0200 |
commit | 15e72336f9763bfa2dce4d9aa0f8dcb518b51ac1 (patch) | |
tree | f8d039ad56773a53e622ebf7d0881017a0059f4c | |
parent | 8c83c0634aca05182d6814f722abc184e40d89ff (diff) |
compare_hkl: Recognise --fom=cc*, cc1/2 and cchalf
-rw-r--r-- | doc/man/compare_hkl.1 | 4 | ||||
-rw-r--r-- | src/compare_hkl.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/man/compare_hkl.1 b/doc/man/compare_hkl.1 index ca2af21d..25727f4c 100644 --- a/doc/man/compare_hkl.1 +++ b/doc/man/compare_hkl.1 @@ -50,10 +50,10 @@ sum(|I1-kI2|) / sum(I1) .IP \fBR2\fR .PD sqrt(sum[(I1-kI2)^2] / sum(I1^2)) -.IP \fBCC\fR +.IP \fBCC\ (CChalf)\fR .PD The Pearson correlation coefficient. -.IP \fBCC*\fR +.IP \fBCC*\ (CCstar)\fR .PD See Karplus and Diederichs, Science 336 (2012) p1030. .IP \fBCCano\fR diff --git a/src/compare_hkl.c b/src/compare_hkl.c index f3f174d8..7b3aeb64 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -88,7 +88,10 @@ static enum fom_type fom_type_from_string(const char *s) if ( strcasecmp(s, "r2") == 0 ) return FOM_R2; if ( strcasecmp(s, "rsplit") == 0 ) return FOM_RSPLIT; if ( strcasecmp(s, "cc") == 0 ) return FOM_CC; + if ( strcasecmp(s, "cc1/2") == 0 ) return FOM_CC; + if ( strcasecmp(s, "cchalf") == 0 ) return FOM_CC; if ( strcasecmp(s, "ccstar") == 0 ) return FOM_CCSTAR; + if ( strcasecmp(s, "cc*") == 0 ) return FOM_CCSTAR; if ( strcasecmp(s, "ccano") == 0 ) return FOM_CCANO; if ( strcasecmp(s, "crdano") == 0 ) return FOM_CRDANO; if ( strcasecmp(s, "rano") == 0 ) return FOM_RANO; |