Histogram Program

Histogram Program - 消息

#1 已发布: 2019/1/11 17:41:50
Norm Schutzkus

Norm Schutzkus

9个赞,共90个帖子。

组: User

未找到文件。未找到文件。

I've come across a mathcad2000i worksheet that I converted to prime4, the attached pdf shows the results. I've attempted to reproduce the Histogram(X) routine in SMath but can't seem to get past the "Argument must be a vector..." error. I welcome the collabs review and recommendations if this routine will work.

Thank you,
#2 已发布: 2019/1/12 03:12:54
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. Do you have the original Mathcad2000 worksheet?
Instead of parse a variable parameter number f(x,p1,p2,p3,...) you can use just f(x,p) but with p as a vector columns. With that you don't need replicate, Vec2Vec&Size and the other similar utilities.

Best regards.
Alvaro.
#3 已发布: 2019/1/12 07:47:15
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

routine for X-Y plot

hist.sm (14.89 KiB)已下载 1291 次。

2019-01-12 12_48_16-Window.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
frapuano 2019/1/12 08:33:00
#4 已发布: 2019/1/12 11:30:09
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I've come across a mathcad2000i worksheet that I converted to prime4, the attached pdf shows the results. I've attempted to reproduce the Histogram(X) routine in SMath but can't seem to get past the "Argument must be a vector..." error. I welcome the collabs review and recommendations if this routine will work.


I think, don't understand what you are trying to do ... few points:
1. NaN what introduce by Mathsoft during design of DAEP [2003]
2. NaN is not ∞ ... rather it is based on floating point error,
a pure decoration in Smath except if related to Maple.
3. Tom G. didn't have DAEP [300 $ in 2003]. Tom did lot of work based on NaN.
From recollection, he used ^307. I tried simulate NaN in Smath not to avail.4
4. In Mathcad, there are 17 styles random, all built-in from the universal
random uniform found in most systems.
5. 'rlogis' is useful in Monte-Carlo stuff, included in the attached.
6. Also attached: how to simulate normal random from the CLT
Central Limit Theorem.
7. If you are given a data set that looks bell shape, trying to fit that is
like lottery ... Why ?
8. Data are just data, they don't collect bell shape by themselves.
Some smart have binned them. Depending upon the binning you will get
all sorts of misleading PDF.
9. Added the PW weighted histogram c/w the original application that lasted
weeks that the originator had none of "thanks or equivalent" in his vocabulary.

Cheers ... Jean

Stat Monte Carlo [rlogis].sm (74.59 KiB)已下载 1111 次。
Stat Random normal USER.sm (123.34 KiB)已下载 1219 次。
Stat Histogram PW.sm (110.69 KiB)已下载 1243 次。

#5 已发布: 2019/1/12 11:45:31
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I welcome the collabs review


... Oh ! forgot to return your original

Probability Fitting[1].sm (90.65 KiB)已下载 1024 次。
#6 已发布: 2019/1/12 14:20:25
Norm Schutzkus

Norm Schutzkus

9个赞,共90个帖子。

组: User

Prob Fitting.xmcd (182.44 KiB)已下载 1389 次。

Thank you, David & Jean for your help and direction.

Alvaro, for your reference, attached is the worksheet, I believe by Tom Gutman.

Again, many thanks!
#7 已发布: 2019/1/12 14:30:37
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I believe by Tom Gutman


Yes, Tom Gutman
This demo to illustrate the CLT

Stat Histogram DEMO.sm (23.33 KiB)已下载 1259 次。

#8 已发布: 2019/1/12 21:33:48
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

See Maxima docs for available functions and options

2019-01-13 01_24_47-SMath Studio 0.99.6884 - [Streuung.sm].png
Streuung.sm (45.46 KiB)已下载 1310 次。
streug.rar (291 B)已下载 371 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
frapuano 2019/1/13 05:20:00
#9 已发布: 2019/1/13 20:48:58
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

This demo to illustrate the CLT


From native Smath, you can have:
1. colors at will [rich from X_Y plot], even white to imitate no bar.
2. Slightly separated, joined, slightly overlapped.
3. solid or hatched at will.

HistoBar.PNG

Stat Histogram BarColor.sm (26.33 KiB)已下载 1277 次。

#10 已发布: 2019/1/14 00:48:22
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... or like this.

HistoBarGray.PNG
  • 有新帖
  • 无新帖