aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-05 16:04:38 +0100
committerThomas White <taw@physics.org>2021-02-05 16:05:56 +0100
commit04ce5c5c98df8b2d92e8646f8b82e3975f69b50a (patch)
treea0ab357ac585eea949d9b0aeca8bf2a518994020 /libcrystfel
parentb61283524a7c9e4ec61d8d2bd2d24358df06c062 (diff)
check_hkl: Remove standard deviation of intensity
It would've been difficult to calculate this in the new unified FoM API, and the figure is completely useless anyway. If you disagree with both of the above statements, please get in touch!
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/fom.c12
-rw-r--r--libcrystfel/src/fom.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/libcrystfel/src/fom.c b/libcrystfel/src/fom.c
index c2de704a..c3ac934e 100644
--- a/libcrystfel/src/fom.c
+++ b/libcrystfel/src/fom.c
@@ -129,7 +129,6 @@ static struct fom_context *init_fom(enum fom_type fom, int nmax, int nshells)
case FOM_RSPLIT :
case FOM_RANO :
case FOM_MEAN_INTENSITY :
- case FOM_STDDEV_INTENSITY :
case FOM_SNR :
case FOM_REDUNDANCY :
fctx->num = malloc(nshells*sizeof(double));
@@ -315,12 +314,6 @@ static int add_to_fom(struct fom_context *fctx,
fctx->den[bin] += 1.0;
break;
- /* FIXME: Delete this FoM? */
- case FOM_STDDEV_INTENSITY :
- fctx->num[bin] += 1.0;
- fctx->den[bin] += 1.0;
- break;
-
case FOM_COMPLETENESS :
/* fctx->cts already incremented, as needed.
* Will calculate possible reflections later */
@@ -361,7 +354,6 @@ double fom_overall_value(struct fom_context *fctx)
case FOM_REDUNDANCY :
case FOM_SNR :
case FOM_MEAN_INTENSITY :
- case FOM_STDDEV_INTENSITY :
overall_num = 0.0;
overall_den = 0.0;
for ( i=0; i<fctx->nshells; i++ ) {
@@ -464,7 +456,6 @@ double fom_overall_value(struct fom_context *fctx)
case FOM_REDUNDANCY :
case FOM_SNR :
case FOM_MEAN_INTENSITY :
- case FOM_STDDEV_INTENSITY :
return overall_num/overall_den;
case FOM_COMPLETENESS :
@@ -521,7 +512,6 @@ double fom_shell_value(struct fom_context *fctx, int i)
case FOM_REDUNDANCY :
case FOM_SNR :
case FOM_MEAN_INTENSITY :
- case FOM_STDDEV_INTENSITY :
return fctx->num[i]/fctx->den[i];
case FOM_R2 :
@@ -845,7 +835,6 @@ static int is_anomalous(enum fom_type fom)
case FOM_REDUNDANCY:
case FOM_SNR:
case FOM_MEAN_INTENSITY:
- case FOM_STDDEV_INTENSITY:
case FOM_COMPLETENESS:
return 0;
}
@@ -877,7 +866,6 @@ static int is_single_list(enum fom_type fom)
case FOM_REDUNDANCY:
case FOM_SNR:
case FOM_MEAN_INTENSITY:
- case FOM_STDDEV_INTENSITY:
case FOM_COMPLETENESS:
return 1;
}
diff --git a/libcrystfel/src/fom.h b/libcrystfel/src/fom.h
index c9c8dbfe..565c9b80 100644
--- a/libcrystfel/src/fom.h
+++ b/libcrystfel/src/fom.h
@@ -69,7 +69,6 @@ enum fom_type
FOM_REDUNDANCY,
FOM_SNR,
FOM_MEAN_INTENSITY,
- FOM_STDDEV_INTENSITY,
FOM_COMPLETENESS,
};