diff options
| author | Jay Belanger | 2010-05-15 23:43:09 -0500 |
|---|---|---|
| committer | Jay Belanger | 2010-05-15 23:43:09 -0500 |
| commit | 597517ef8dc589e3b920a0f5bcdf55f9f6cde644 (patch) | |
| tree | 58bec545b37f91bef730a8e5f21130a5d74c64c1 /doc/misc | |
| parent | eba62f7a5950e77d207ea233a10597f2c9639b0b (diff) | |
| download | emacs-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/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/misc/calc.texi | 14 |
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 @@ | |||
| 1 | 2010-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 | |||
| 1 | 2010-05-13 Jay Belanger <jay.p.belanger@gmail.com> | 6 | 2010-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 | ||
| 5 | 2010-05-08 Štěpán Němec <stepnem@gmail.com> (tiny change) | 10 | 2010-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 | |||
| 20030 | that the counts in the result vector don't add up to the length of the | 20030 | that the counts in the result vector don't add up to the length of the |
| 20031 | input vector.) | 20031 | input vector.) |
| 20032 | 20032 | ||
| 20033 | If no prefix is given, then you will be prompted for a vector which | ||
| 20034 | will be used to determine the bins. (If a positive integer is given at | ||
| 20035 | this prompt, it will be still treated as if it were given as a | ||
| 20036 | prefix.) Each bin will consist of the interval of numbers closest to | ||
| 20037 | the 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 | ||
| 20040 | this command will be a vector counting how many elements of the | ||
| 20041 | original vector are in each bin. | ||
| 20042 | |||
| 20043 | The result will then be a vector with the same length as this new vector; | ||
| 20044 | each element of the new vector will be replaced by the number of | ||
| 20045 | elements 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 |
| 20035 | With the Hyperbolic flag, @kbd{H V H} pulls two vectors from the stack. | 20049 | With the Hyperbolic flag, @kbd{H V H} pulls two vectors from the stack. |