2
GeoGebra - Dynamic Mathematics for Everyone
3
http://www.geogebra.org
5
This file is part of GeoGebra.
7
This program is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by
9
the Free Software Foundation.
13
package geogebra.kernel.statistics;
15
import geogebra.kernel.AlgoDrawInformation;
16
import geogebra.kernel.AlgoFunctionAreaSums;
17
import geogebra.kernel.Construction;
18
import geogebra.kernel.GeoBoolean;
19
import geogebra.kernel.arithmetic.NumberValue;
26
public class AlgoBinomialDistBarChart extends AlgoFunctionAreaSums {
28
private static final long serialVersionUID = 1L;
30
public AlgoBinomialDistBarChart(Construction cons, String label,
31
NumberValue n, NumberValue p) {
32
super(cons,label, n, p, null, null, AlgoFunctionAreaSums.TYPE_BARCHART_BINOMIAL);
36
public AlgoBinomialDistBarChart(Construction cons, String label,
37
NumberValue n, NumberValue p, GeoBoolean isCumulative) {
38
super(cons,label, n, p, null, isCumulative, AlgoFunctionAreaSums.TYPE_BARCHART_BINOMIAL);
41
private AlgoBinomialDistBarChart(
42
NumberValue n, NumberValue p, GeoBoolean isCumulative,NumberValue a,NumberValue b,double[]vals,
43
double[]borders,int N) {
44
super(n, p, null, isCumulative, AlgoFunctionAreaSums.TYPE_BARCHART_BINOMIAL,a,b,vals,borders,N);
48
public String getClassName() {
49
return "AlgoBinomialDistBarChart";
52
public AlgoDrawInformation copy() {
53
GeoBoolean b = (GeoBoolean)this.getIsCumulative();
54
if(b!=null)b=(GeoBoolean)b.copy();
56
return new AlgoBinomialDistBarChart(
57
(NumberValue)this.getP1().deepCopy(kernel),(NumberValue)this.getP2().deepCopy(kernel),
58
b,(NumberValue)this.getA().deepCopy(kernel),(NumberValue)this.getB().deepCopy(kernel),
59
getValues().clone(),getLeftBorder().clone(),getIntervals());