用Java绘制高斯曲线

用Java绘制高斯曲线

本文介绍了用Java绘制高斯曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Piccolo 编写交互式小程序,我需要包含一条高斯曲线(又名 正态分布图)在里面.

I'm coding an interactive applet with Piccolo and I need to include a Gaussian curve (aka Normal distribution chart) inside it.

我想任何类型的 Java 实现都足够了,但我找不到任何实现.理想情况下,我希望传递一组值并将图表绘制在面板、图像对象或任何可以嵌入小程序中的内容中.

I imagine any kind of Java implementation would be enough, but I can't find any. Ideally, I'd like to pass a set of values and have the chart drawn in a panel, an image object or anything that can be embedded in an applet.

在我亲自动手编写代码之前,有没有人知道可以执行此操作的有效代码?

Before getting my hands dirty coding it myself, does anybody know of a working piece of code to do it?

欢迎使用其他语言实现,只要它们易于移植到 Java.

Implementations in other languages are welcomed, as long as they are easily portable to Java.

推荐答案

不知道是否有效,但 Google 吐了 此代码绘制高斯分布.

Don't know if it works, but Google threw up this code to plot a Gaussian distribution.

这个项目的主页是这里.

如果 Piccolo 不为您执行绘图,我可能会使用 JFreeChart 作为实际绘图,因为它得到了广泛的支持并且非常有能力.(我不熟悉 Piccolo)

If Piccolo doesn't perform the plotting for you, I would perhaps use JFreeChart for the actual plotting, since it's widely supported and very capable. (I'm not familiar with Piccolo)

这篇关于用Java绘制高斯曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 12:49