aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorJay Belanger2010-05-15 23:43:09 -0500
committerJay Belanger2010-05-15 23:43:09 -0500
commit597517ef8dc589e3b920a0f5bcdf55f9f6cde644 (patch)
tree58bec545b37f91bef730a8e5f21130a5d74c64c1 /doc/misc
parenteba62f7a5950e77d207ea233a10597f2c9639b0b (diff)
downloademacs-597517ef8dc589e3b920a0f5bcdf55f9f6cde644.tar.gz
emacs-597517ef8dc589e3b920a0f5bcdf55f9f6cde644.zip
calc-vec.el (calc-histogram):
(calcFunc-histogram): Allow vectors as inputs. (math-vector-avg): New function. calc.texi (Manipulating Vectors): Mention that vectors can be used to determine bins for `calc-histogram'.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog7
-rw-r--r--doc/misc/calc.texi14
2 files changed, 20 insertions, 1 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index c6d3c1be498..4c857c45a32 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,6 +1,11 @@
12010-05-16 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc.texi (Manipulating Vectors): Mention that vectors can
4 be used to determine bins for `calc-histogram'.
5
12010-05-13 Jay Belanger <jay.p.belanger@gmail.com> 62010-05-13 Jay Belanger <jay.p.belanger@gmail.com>
2 7
3 * calc.texi: Remove "\turnoffactive" commands througout. 8 * calc.texi: Remove "\turnoffactive" commands throughout.
4 9
52010-05-08 Štěpán Němec <stepnem@gmail.com> (tiny change) 102010-05-08 Štěpán Němec <stepnem@gmail.com> (tiny change)
6 11
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index c578e919612..12b8d8e162d 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -20030,6 +20030,20 @@ range are ignored. (You can tell if elements have been ignored by noting
20030that the counts in the result vector don't add up to the length of the 20030that the counts in the result vector don't add up to the length of the
20031input vector.) 20031input vector.)
20032 20032
20033If no prefix is given, then you will be prompted for a vector which
20034will be used to determine the bins. (If a positive integer is given at
20035this prompt, it will be still treated as if it were given as a
20036prefix.) Each bin will consist of the interval of numbers closest to
20037the corresponding number of this new vector; if the vector
20038@expr{[a, b, c, ...]} is entered at the prompt, the bins will be
20039@expr{(-inf, (a+b)/2]}, @expr{((a+b)/2, (b+c)/2]}, etc. The result of
20040this command will be a vector counting how many elements of the
20041original vector are in each bin.
20042
20043The result will then be a vector with the same length as this new vector;
20044each element of the new vector will be replaced by the number of
20045elements of the original vector which are closest to it.
20046
20033@kindex H v H 20047@kindex H v H
20034@kindex H V H 20048@kindex H V H
20035With the Hyperbolic flag, @kbd{H V H} pulls two vectors from the stack. 20049With the Hyperbolic flag, @kbd{H V H} pulls two vectors from the stack.