Histogram Program

Histogram Program - Messaggi

#1 Pubblicato: 11/01/2019 17:41:50
Norm Schutzkus

Norm Schutzkus

9 apprezzamenti in 90 post.

Gruppo: User

File non trovato.File non trovato.

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 Pubblicato: 12/01/2019 03:12:54
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 Pubblicato: 12/01/2019 07:47:15
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

routine for X-Y plot

hist.sm (14,89 KiB) scaricato 1281 volta(e).

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 utenti hanno apprezzato questo post
frapuano 12/01/2019 08:33:00
#4 Pubblicato: 12/01/2019 11:30:09
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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) scaricato 1102 volta(e).
Stat Random normal USER.sm (123,34 KiB) scaricato 1209 volta(e).
Stat Histogram PW.sm (110,69 KiB) scaricato 1235 volta(e).

#5 Pubblicato: 12/01/2019 11:45:31
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I welcome the collabs review


... Oh ! forgot to return your original

Probability Fitting[1].sm (90,65 KiB) scaricato 1010 volta(e).
#6 Pubblicato: 12/01/2019 14:20:25
Norm Schutzkus

Norm Schutzkus

9 apprezzamenti in 90 post.

Gruppo: User

Prob Fitting.xmcd (182,44 KiB) scaricato 1374 volta(e).

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 Pubblicato: 12/01/2019 14:30:37
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I believe by Tom Gutman


Yes, Tom Gutman
This demo to illustrate the CLT

Stat Histogram DEMO.sm (23,33 KiB) scaricato 1248 volta(e).

#8 Pubblicato: 12/01/2019 21:33:48
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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) scaricato 1304 volta(e).
streug.rar (291 B) scaricato 368 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
frapuano 13/01/2019 05:20:00
#9 Pubblicato: 13/01/2019 20:48:58
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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) scaricato 1266 volta(e).

#10 Pubblicato: 14/01/2019 00:48:22
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... or like this.

HistoBarGray.PNG
  • Nuovi post
  • Nessun nuovo post