[contrib][haskell] move OutputBaseDir and SampleName into Types.hs
[hkl.git] / hkl / hkl-trajectory-private.h
blob55b3033584e3f4cd0d82663aceb94f09c9df1cb0
1 /* This file is part of the hkl library.
3 * The hkl library is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
8 * The hkl library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with the hkl library. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright (C) 2003-2017 Synchrotron SOLEIL
17 * L'Orme des Merisiers Saint-Aubin
18 * BP 48 91192 GIF-sur-YVETTE CEDEX
20 * Authors: Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
22 #include "hkl.h"
24 /* HklTrajectoryResult */
26 typedef darray(HklGeometry *) darray_geometry;
28 typedef struct _HklTrajectoryResult HklTrajectoryResult;
30 struct _HklTrajectoryResult {
31 darray_geometry geometries;
34 extern HklTrajectoryResult * hkl_trajectory_result_new(void);
36 extern void hkl_trajectory_result_free(HklTrajectoryResult *self);
38 extern void hkl_trajectory_add_geometry(HklTrajectoryResult *self, const HklGeometry *geometry);
40 /* HklTrajectoryStats */
42 typedef darray(double) darray_double;
43 typedef darray(size_t) darray_sizet;
45 typedef struct _HklTrajectoryStats HklTrajectoryStats;
47 struct _HklTrajectoryStats {
48 size_t n;
49 darray_sizet nb_solutions;
50 darray_double axes_min;
51 darray_double axes_max;
52 darray_double axes_range;
55 extern HklTrajectoryStats *hkl_trajectory_stats_new(int n);
57 extern void hkl_trajectory_stats_free(HklTrajectoryStats *self);
59 extern void hkl_trajectory_stats_add(HklTrajectoryStats *self, const HklGeometryList *geometries);
61 extern void hkl_trajectory_stats_fprintf(FILE *f, const HklTrajectoryStats *self);