Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Java library for statistical calculations needed

 
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on an app that monitors a production process, and I've been asked to calculate Cpk and Ppk. I'd never heard of these so I found an explanation here. Now, I had one semester of algebra and one of geometry. Just looking at these formulas makes me quesy. I can't even read them, much less even begin to write the equivalent code.

So my quest is to find a library that will provide the required methods. No luck with apache.commons.Math. I found a Monarch Charts and SPC Control Chart, but they are commercial products and I know without asking that the company will not purchase it.

I also looked at JMathLib, a free clone of Matlab, but it also lacks the capability I need.

So, two part question. Does anyone know of a free (or cheap) Java library that will calculate these statistics? If not, is there some generous soul on here who has traveled this road already and can share some code?
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<sound of crickets chirping>

I guess I hit the wall on this one. I'll either try to find a math major who can interpret the formulas or just scratch this from the list of requirements. If anyone has any suggestions at all, please speak up. Thanks.
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You never had calculus?! I thought calculus is a prerequisite for most engineering courses. Anyhoo. It seems like some of these formulas use integration, which is might be confusing you. You will be probably getting someone who can atleast read those formulas.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, no calc, no trig. I'm just a former hardware support guy who found software dev a lot more fun, so I got a 2 year degree in programming. Not even a B.S.

btw, do you know what is more dangerous than a hardware tech with a compiler? A programmer with a screwdriver.

I've been both, so I guess I'm doubly dangerous.
 
Jayesh A Lalwani
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

J. Kevin Robbins wrote:
btw, do you know what is more dangerous than a hardware tech with a compiler? A programmer with a screwdriver.



I'll attest to that!!

Unfortunately, you have run in a situation that probably a minority of BE computer engineers run into in which they actually have to use something that they learnt in college.
 
Sheriff
Posts: 24654
58
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case you might want to spend a few bucks for an hour of a math major's time. You won't need a PhD, just somebody who did well in (say) first-year university math.

(And yes, I've been a programmer with a screwdriver. In my first year as a consultant I was sent out to add more memory to a client's computer. I looked at the chip kit and though "Oh good, they've given me nine, that must be one extra in case I bend the pins on one of the other eight." But no, I had to install all nine chips. Fortunately I didn't bend any pins but I was sweating bricks.)
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since we are manufacturing facility we have actual engineers on site. I found one who many years ago wrote a Cpk/Ppk formula in, get this, QBasic. If we can find that source I'll try to translate it to Java. That should be interesting.
 
Jayesh A Lalwani
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd be more worried about having to maintain that code than implement it. You might be ale to focus and get that QBasic code ported over, but when you get a problem 3 months later, are you going to be able to understand it yourself?
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!