~ubuntu-branches/ubuntu/trusty/gsl-ref-html/trusty

« back to all changes in this revision

Viewing changes to Histogram-Operations.html

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2006-04-12 19:46:32 UTC
  • mfrom: (1.3.1 upstream) (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060412194632-c9lodpl075pv9si3
Tags: 1.8-1
* New upstream release 1.8
* As with previous releases, the sources were obtained from the FSF web 
  pages by means of a wget call (c.f. the debian/rules target 'upstream')

* debian/control: Standards-Version increased to 3.6.2
* debian/copyright: Updated FSF address
* debian/rules: Set DH_COMPAT=4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html lang="en">
 
2
<head>
 
3
<title>Histogram Operations - GNU Scientific Library -- Reference Manual</title>
 
4
<meta http-equiv="Content-Type" content="text/html">
 
5
<meta name="description" content="GNU Scientific Library -- Reference Manual">
 
6
<meta name="generator" content="makeinfo 4.8">
 
7
<link title="Top" rel="start" href="index.html#Top">
 
8
<link rel="up" href="Histograms.html#Histograms" title="Histograms">
 
9
<link rel="prev" href="Histogram-Statistics.html#Histogram-Statistics" title="Histogram Statistics">
 
10
<link rel="next" href="Reading-and-writing-histograms.html#Reading-and-writing-histograms" title="Reading and writing histograms">
 
11
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
 
12
<!--
 
13
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 The GSL Team.
 
14
 
 
15
Permission is granted to copy, distribute and/or modify this document
 
16
under the terms of the GNU Free Documentation License, Version 1.2 or
 
17
any later version published by the Free Software Foundation; with the
 
18
Invariant Sections being ``GNU General Public License'' and ``Free Software
 
19
Needs Free Documentation'', the Front-Cover text being ``A GNU Manual'',
 
20
and with the Back-Cover Text being (a) (see below).  A copy of the
 
21
license is included in the section entitled ``GNU Free Documentation
 
22
License''.
 
23
 
 
24
(a) The Back-Cover Text is: ``You have freedom to copy and modify this
 
25
GNU Manual, like GNU software.''-->
 
26
<meta http-equiv="Content-Style-Type" content="text/css">
 
27
<style type="text/css"><!--
 
28
  pre.display { font-family:inherit }
 
29
  pre.format  { font-family:inherit }
 
30
  pre.smalldisplay { font-family:inherit; font-size:smaller }
 
31
  pre.smallformat  { font-family:inherit; font-size:smaller }
 
32
  pre.smallexample { font-size:smaller }
 
33
  pre.smalllisp    { font-size:smaller }
 
34
  span.sc    { font-variant:small-caps }
 
35
  span.roman { font-family:serif; font-weight:normal; } 
 
36
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
 
37
--></style>
 
38
</head>
 
39
<body>
 
40
<div class="node">
 
41
<p>
 
42
<a name="Histogram-Operations"></a>
 
43
Next:&nbsp;<a rel="next" accesskey="n" href="Reading-and-writing-histograms.html#Reading-and-writing-histograms">Reading and writing histograms</a>,
 
44
Previous:&nbsp;<a rel="previous" accesskey="p" href="Histogram-Statistics.html#Histogram-Statistics">Histogram Statistics</a>,
 
45
Up:&nbsp;<a rel="up" accesskey="u" href="Histograms.html#Histograms">Histograms</a>
 
46
<hr>
 
47
</div>
 
48
 
 
49
<h3 class="section">21.7 Histogram Operations</h3>
 
50
 
 
51
<div class="defun">
 
52
&mdash; Function: int <b>gsl_histogram_equal_bins_p</b> (<var>const gsl_histogram * h1, const gsl_histogram * h2</var>)<var><a name="index-gsl_005fhistogram_005fequal_005fbins_005fp-1783"></a></var><br>
 
53
<blockquote><p>This function returns 1 if the all of the individual bin
 
54
ranges of the two histograms are identical, and 0
 
55
otherwise. 
 
56
</p></blockquote></div>
 
57
 
 
58
<div class="defun">
 
59
&mdash; Function: int <b>gsl_histogram_add</b> (<var>gsl_histogram * h1, const gsl_histogram * h2</var>)<var><a name="index-gsl_005fhistogram_005fadd-1784"></a></var><br>
 
60
<blockquote><p>This function adds the contents of the bins in histogram <var>h2</var> to the
 
61
corresponding bins of histogram <var>h1</var>,  i.e. h'_1(i) = h_1(i) +
 
62
h_2(i).  The two histograms must have identical bin ranges. 
 
63
</p></blockquote></div>
 
64
 
 
65
<div class="defun">
 
66
&mdash; Function: int <b>gsl_histogram_sub</b> (<var>gsl_histogram * h1, const gsl_histogram * h2</var>)<var><a name="index-gsl_005fhistogram_005fsub-1785"></a></var><br>
 
67
<blockquote><p>This function subtracts the contents of the bins in histogram <var>h2</var>
 
68
from the corresponding bins of histogram <var>h1</var>, i.e. h'_1(i) =
 
69
h_1(i) - h_2(i).  The two histograms must have identical bin ranges. 
 
70
</p></blockquote></div>
 
71
 
 
72
<div class="defun">
 
73
&mdash; Function: int <b>gsl_histogram_mul</b> (<var>gsl_histogram * h1, const gsl_histogram * h2</var>)<var><a name="index-gsl_005fhistogram_005fmul-1786"></a></var><br>
 
74
<blockquote><p>This function multiplies the contents of the bins of histogram <var>h1</var>
 
75
by the contents of the corresponding bins in histogram <var>h2</var>,
 
76
i.e. h'_1(i) = h_1(i) * h_2(i).  The two histograms must have
 
77
identical bin ranges. 
 
78
</p></blockquote></div>
 
79
 
 
80
<div class="defun">
 
81
&mdash; Function: int <b>gsl_histogram_div</b> (<var>gsl_histogram * h1, const gsl_histogram * h2</var>)<var><a name="index-gsl_005fhistogram_005fdiv-1787"></a></var><br>
 
82
<blockquote><p>This function divides the contents of the bins of histogram <var>h1</var> by
 
83
the contents of the corresponding bins in histogram <var>h2</var>,
 
84
i.e. h'_1(i) = h_1(i) / h_2(i).  The two histograms must have
 
85
identical bin ranges. 
 
86
</p></blockquote></div>
 
87
 
 
88
<div class="defun">
 
89
&mdash; Function: int <b>gsl_histogram_scale</b> (<var>gsl_histogram * h, double scale</var>)<var><a name="index-gsl_005fhistogram_005fscale-1788"></a></var><br>
 
90
<blockquote><p>This function multiplies the contents of the bins of histogram <var>h</var>
 
91
by the constant <var>scale</var>, i.e. <!-- {$h'_1(i) = h_1(i) * \hbox{\it scale}$} -->
 
92
h'_1(i) = h_1(i) * scale. 
 
93
</p></blockquote></div>
 
94
 
 
95
<div class="defun">
 
96
&mdash; Function: int <b>gsl_histogram_shift</b> (<var>gsl_histogram * h, double offset</var>)<var><a name="index-gsl_005fhistogram_005fshift-1789"></a></var><br>
 
97
<blockquote><p>This function shifts the contents of the bins of histogram <var>h</var> by
 
98
the constant <var>offset</var>, i.e. <!-- {$h'_1(i) = h_1(i) + \hbox{\it offset}$} -->
 
99
h'_1(i) = h_1(i) + offset. 
 
100
</p></blockquote></div>
 
101
 
 
102
   </body></html>
 
103