analysis-frequency.h 1.54 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * analysis-frequency.h:
 *
 * Author:
 *   Andreas J. Guelzow  <aguelzow@pyrshep.ca>
 *
 * (C) Copyright 2008 by Andreas J. Guelzow  <aguelzow@pyrshep.ca>
 *
 *
 * 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) any later version.
 *
 * 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
22
 * along with this program; if not, see <https://www.gnu.org/licenses/>.
23 24 25 26 27 28 29 30
 */


#ifndef ANALYSIS_FREQUENCY_H
#define ANALYSIS_FREQUENCY_H

#include "gnumeric.h"
#include "numbers.h"
31
#include <tools/dao.h>
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
#include "tools.h"
#include "analysis-tools.h"

typedef enum {
	NO_CHART = 0,
	BAR_CHART,
	COLUMN_CHART
} chart_freq_t;


typedef struct {
	analysis_tools_data_generic_t base;
	gboolean   predetermined;
	GnmValue   *bin;
	gnm_float max;
	gnm_float min;
	gint       n;
	gboolean   percentage;
50
	gboolean   exact;
Morten Welinder's avatar
Morten Welinder committed
51
	chart_freq_t   chart;
52 53
} analysis_tools_data_frequency_t;

54
gboolean analysis_tool_frequency_engine (GOCmdContext *gcc, data_analysis_output_t *dao, gpointer specs,
55 56 57
					   analysis_tool_engine_t selector, gpointer result);

#endif