/usr/include/libgoffice-0.10/goffice/graph/gog-reg-curve.h is in libgoffice-0.10-dev 0.10.28-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /*
* gog-reg-curve.h :
*
* Copyright (C) 2005 Jean Brefort (jean.brefort@normalesup.org)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
* USA
*/
#ifndef GOG_REG_CURVE_H
#define GOG_REG_CURVE_H
#include <goffice/goffice.h>
G_BEGIN_DECLS
typedef enum {
GOG_REG_CURVE_DRAWING_BOUNDS_NONE,
GOG_REG_CURVE_DRAWING_BOUNDS_ABSOLUTE,
GOG_REG_CURVE_DRAWING_BOUNDS_RELATIVE
} GogRegCurveDrawingBounds;
struct _GogRegCurve {
GogTrendLine base;
gboolean weighted;
GogDatasetElement *bounds; /* aliased to include the name as -1 */
gboolean skip_invalid; /* do not take into account invalid data */
int ninterp; /* how many points to use for display the curve as a vpath */
double *a; /* calculated coefficients, must be allocated by derived class */
double R2; /* squared regression coefficient */
char *equation;
GogRegCurveDrawingBounds drawing_bounds;
gpointer priv;
};
typedef struct {
GogTrendLineClass base;
double (*get_value_at) (GogRegCurve *reg_curve, double x);
char const * (*get_equation) (GogRegCurve *reg_curve);
void (*populate_editor) (GogRegCurve *reg_curve, gpointer table);
/*<private>*/
void (*reserved1) (void);
void (*reserved2) (void);
} GogRegCurveClass;
#define GOG_TYPE_REG_CURVE (gog_reg_curve_get_type ())
#define GOG_REG_CURVE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOG_TYPE_REG_CURVE, GogRegCurve))
#define GOG_IS_REG_CURVE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOG_TYPE_REG_CURVE))
GType gog_reg_curve_get_type (void);
gchar const *gog_reg_curve_get_equation (GogRegCurve *reg_curve);
double gog_reg_curve_get_R2 (GogRegCurve *reg_curve);
void gog_reg_curve_get_bounds (GogRegCurve *reg_curve, double *xmin, double *xmax);
G_END_DECLS
#endif /* GOG_REG_CURVE_H */
|