aboutsummaryrefslogtreecommitdiff
path: root/src/reflist.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-15 15:56:26 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:20 +0100
commitb8ac0faea1abb2e3033140dcd157160bfa98d251 (patch)
treee62dd9269372375c95936d72c33187a5945edf29 /src/reflist.c
parentbe49b97c792edc33d908965823f73f33b830d557 (diff)
WIP on new stream format in process_hkl
Diffstat (limited to 'src/reflist.c')
-rw-r--r--src/reflist.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/reflist.c b/src/reflist.c
index 3a53330c..3181b418 100644
--- a/src/reflist.c
+++ b/src/reflist.c
@@ -45,6 +45,13 @@ struct _refldata {
/* Intensity */
double intensity;
double esd_i;
+
+ /* Redundancy */
+ int redundancy;
+
+ /* Total squared difference between all estimates of this reflection
+ * and the estimated mean value */
+ double sum_squared_dev;
};
@@ -225,6 +232,24 @@ int get_scalable(Reflection *refl)
}
+int get_redundancy(Reflection *refl)
+{
+ return refl->data.redundancy;
+}
+
+
+double get_sum_squared_dev(Reflection *refl)
+{
+ return refl->data.sum_squared_dev;
+}
+
+
+double get_esd_intensity(Reflection *refl)
+{
+ return refl->data.esd_i;
+}
+
+
/********************************** Setters ***********************************/
void set_detector_pos(Reflection *refl, double exerr, double x, double y)
@@ -258,6 +283,24 @@ void set_scalable(Reflection *refl, int scalable)
}
+void set_redundancy(Reflection *refl, int red)
+{
+ refl->data.redundancy = red;
+}
+
+
+void set_sum_squared_dev(Reflection *refl, double dev)
+{
+ refl->data.sum_squared_dev = dev;
+}
+
+
+void set_esd_intensity(Reflection *refl, double esd)
+{
+ refl->data.esd_i = esd;
+}
+
+
/********************************* Insertion **********************************/
static void insert_node(Reflection *head, Reflection *new)