org.mklab.tool.matrix
クラス Bar

java.lang.Object
  上位を拡張 org.mklab.tool.matrix.Bar

public class Bar
extends Object

棒グラフを描画するためのデータを生成するクラスです。

Data for bar graph

バージョン:
$Revision: 1.23 $
作成者:
koga
関連項目:
Hist

コンストラクタの概要
Bar()
           
 
メソッドの概要
static List<Matrix> bar(Matrix y)
          横軸が整数の値をとる棒グラフのデータを返します。
static List<Matrix> bar(Matrix x_, Matrix y_)
          (x, y)という組のデータに対応する 棒グラフを描画するためのデータを返します。
static Gnuplot plot(Matrix x)
          棒グラフを描画します。
static Gnuplot plot(Matrix x, Matrix y)
          棒グラフを描画します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Bar

public Bar()
メソッドの詳細

bar

public static List<Matrix> bar(Matrix y)
横軸が整数の値をとる棒グラフのデータを返します。

パラメータ:
y - データ
戻り値:
{x, y} 棒グラフを描画するためのデータ (data for bar graph)

bar

public static List<Matrix> bar(Matrix x_,
                               Matrix y_)
(x, y)という組のデータに対応する 棒グラフを描画するためのデータを返します。

xの値は、等間隔に離れていて、昇順でなければならない。

パラメータ:
x_ - xデータ
y_ - yデータ
戻り値:
{X, Y} 棒グラフを描画するためのデータ (data for bar graph)

plot

public static Gnuplot plot(Matrix x,
                           Matrix y)
                    throws IOException
棒グラフを描画します。

パラメータ:
x - xデータ
y - yデータ
戻り値:
グラフを描画したGnuplot
例外:
IOException - gnuplotプロセスを起動できない場合

plot

public static Gnuplot plot(Matrix x)
                    throws IOException
棒グラフを描画します。

パラメータ:
x - データ
戻り値:
グラフを描画したGnuplot
例外:
IOException - gnuplotプロセスを起動できない場合