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

« back to all changes in this revision

Viewing changes to 2D-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>2D 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="2D-Histogram-Statistics.html#g_t2D-Histogram-Statistics" title="2D Histogram Statistics">
 
10
<link rel="next" href="Reading-and-writing-2D-histograms.html#Reading-and-writing-2D-histograms" title="Reading and writing 2D 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="g_t2D-Histogram-Operations"></a>
 
43
Next:&nbsp;<a rel="next" accesskey="n" href="Reading-and-writing-2D-histograms.html#Reading-and-writing-2D-histograms">Reading and writing 2D histograms</a>,
 
44
Previous:&nbsp;<a rel="previous" accesskey="p" href="2D-Histogram-Statistics.html#g_t2D-Histogram-Statistics">2D 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.19 2D Histogram Operations</h3>
 
50
 
 
51
<div class="defun">
 
52
&mdash; Function: int <b>gsl_histogram2d_equal_bins_p</b> (<var>const gsl_histogram2d * h1, const gsl_histogram2d * h2</var>)<var><a name="index-gsl_005fhistogram2d_005fequal_005fbins_005fp-1838"></a></var><br>
 
53
<blockquote><p>This function returns 1 if all the individual bin ranges of the two
 
54
histograms are identical, and 0 otherwise. 
 
55
</p></blockquote></div>
 
56
 
 
57
<div class="defun">
 
58
&mdash; Function: int <b>gsl_histogram2d_add</b> (<var>gsl_histogram2d * h1, const gsl_histogram2d * h2</var>)<var><a name="index-gsl_005fhistogram2d_005fadd-1839"></a></var><br>
 
59
<blockquote><p>This function adds the contents of the bins in histogram <var>h2</var> to the
 
60
corresponding bins of histogram <var>h1</var>,
 
61
i.e. h'_1(i,j) = h_1(i,j) + h_2(i,j). 
 
62
The two histograms must have identical bin ranges. 
 
63
</p></blockquote></div>
 
64
 
 
65
<div class="defun">
 
66
&mdash; Function: int <b>gsl_histogram2d_sub</b> (<var>gsl_histogram2d * h1, const gsl_histogram2d * h2</var>)<var><a name="index-gsl_005fhistogram2d_005fsub-1840"></a></var><br>
 
67
<blockquote><p>This function subtracts the contents of the bins in histogram <var>h2</var> from the
 
68
corresponding bins of histogram <var>h1</var>,
 
69
i.e. h'_1(i,j) = h_1(i,j) - h_2(i,j). 
 
70
The two histograms must have identical bin ranges. 
 
71
</p></blockquote></div>
 
72
 
 
73
<div class="defun">
 
74
&mdash; Function: int <b>gsl_histogram2d_mul</b> (<var>gsl_histogram2d * h1, const gsl_histogram2d * h2</var>)<var><a name="index-gsl_005fhistogram2d_005fmul-1841"></a></var><br>
 
75
<blockquote><p>This function multiplies the contents of the bins of histogram <var>h1</var>
 
76
by the contents of the corresponding bins in histogram <var>h2</var>,
 
77
i.e. h'_1(i,j) = h_1(i,j) * h_2(i,j). 
 
78
The two histograms must have identical bin ranges. 
 
79
</p></blockquote></div>
 
80
 
 
81
<div class="defun">
 
82
&mdash; Function: int <b>gsl_histogram2d_div</b> (<var>gsl_histogram2d * h1, const gsl_histogram2d * h2</var>)<var><a name="index-gsl_005fhistogram2d_005fdiv-1842"></a></var><br>
 
83
<blockquote><p>This function divides the contents of the bins of histogram <var>h1</var>
 
84
by the contents of the corresponding bins in histogram <var>h2</var>,
 
85
i.e. h'_1(i,j) = h_1(i,j) / h_2(i,j). 
 
86
The two histograms must have identical bin ranges. 
 
87
</p></blockquote></div>
 
88
 
 
89
<div class="defun">
 
90
&mdash; Function: int <b>gsl_histogram2d_scale</b> (<var>gsl_histogram2d * h, double scale</var>)<var><a name="index-gsl_005fhistogram2d_005fscale-1843"></a></var><br>
 
91
<blockquote><p>This function multiplies the contents of the bins of histogram <var>h</var>
 
92
by the constant <var>scale</var>, i.e. <!-- {$h'_1(i,j) = h_1(i,j) * \hbox{\it scale}$} -->
 
93
h'_1(i,j) = h_1(i,j) scale. 
 
94
</p></blockquote></div>
 
95
 
 
96
<div class="defun">
 
97
&mdash; Function: int <b>gsl_histogram2d_shift</b> (<var>gsl_histogram2d * h, double offset</var>)<var><a name="index-gsl_005fhistogram2d_005fshift-1844"></a></var><br>
 
98
<blockquote><p>This function shifts the contents of the bins of histogram <var>h</var>
 
99
by the constant <var>offset</var>, i.e. <!-- {$h'_1(i,j) = h_1(i,j) + \hbox{\it offset}$} -->
 
100
h'_1(i,j) = h_1(i,j) + offset. 
 
101
</p></blockquote></div>
 
102
 
 
103
   </body></html>
 
104