// Обработчик нажатия кнопки.
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
double[]d={159.5,169.5,155.5,164.5,173.0,158.5,173.5,165.5,161.5,166.5,
152.0,166.0,163.0,167.0,157.5,167.5,162.0,164.5,169.0,160.5,170.5,162.5,
164.0,171.5,153.5,170.5,165.5,163.0,163.0,166.5,158.0,165.0,168.0,169.5,
164.5,169.0,156.0,167.0,163.5,169.5,157.5,171.0,161.5,173.0,165.5,156.5,
172.0,162.5,174.0,159.0,170.0,161.5,166.5,154.0,168.5,162.5,174.5,160.0,
177.0,164.0,165.0,158.5,166.0,167.0,160.0,168.5,162.5,163.5,167.5,157.0,
172.5,164.5,160.0,175.0,166.0,161.0,170.5,162.5,174.5,161.0,167.5,165.0,
153.0,169.0,163.5,162.0,161.0,167.0,171.0,156.5,164.5,169.0,159.5,168.0,
166.0,156.0,166.5,168.0,160.5,168.5};
double[]v={1595,1695,1555,1645,1730,1585,1735,1655,1615,1665,1520,1660,1630,
1670,1575,1675,1620,1645,1690,1605,1705,1625,1640,1715,1535,1705,1655,1630,
1630,1665,1580,1650,1680,1695,1645,1690,1560,1670,1635,1695,1575,1710,1615,
1730,1655,1565,1720,1625,1740,1590,1700,1615,1665,1540,1685,1625,1745,1600,
1770,1640,1650,1585,1660,1670,1600,1685,1625,1635,1675,1570,1725,1645,1600,
1750,1660,1610,1705,1625,1745,1610,1675,1650,1530,1690,1635,1620,1610,1670,
1710,1565,1645,1690,1595,1680,1660,1560,1665,1680,1605,1685};
Consider.selaver(d); // Считает выборочное среднее.
Consider.seldisp(d); // Считает выборочную дисперсию.
Consider.corseldisp(d); // Исправленная дисперсия.
Consider.corfactor(d, v); // Коэффициент корреляции.
Consider.selaver(v);
Consider.seldisp(v);
Consider.corseldisp(v);
Consider.corfactor(v, d);
Axes ax=new Axes(jPanel1.getGraphics(), jPanel1.getBackground()); // Конструктор координатных осей.
ax.show(); // Рисует оси координат на jPanel.
Histogram ht=new Histogram(jPanel1.getGraphics(), jPanel1.getBackground(), d); // Конструктор гистограммы.
ht.show(); // Рисует гистограмму на jPanel.
}