|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.filter.MedianFormula
public class MedianFormula
Calculate the median of all numbers.
| Field Summary |
|---|
| Fields inherited from interface inetsoft.report.filter.Formula |
|---|
__NULL__ |
| Constructor Summary | |
|---|---|
MedianFormula()
|
|
| Method Summary | |
|---|---|
void |
addValue(double v)
Add a double value to the formula. |
void |
addValue(double[] v)
Add double values to the formula. |
void |
addValue(float v)
Add a float value to the formula. |
void |
addValue(int v)
Add an int value to the formula. |
void |
addValue(long v)
Add a long value to the formula. |
void |
addValue(Object v)
Add a value to the formula. |
void |
addValue(short v)
Add a short value to the formula. |
Object |
clone()
Clone this formula. |
String |
getDisplayName()
Get formula display name. |
double |
getDoubleResult()
Get the formula double result. |
String |
getName()
Get formula name. |
Object |
getOriginalResult()
Get the original formula result without percentage. |
int |
getPercentageType()
Get percentage type. |
Object |
getResult()
Get the formula result. |
boolean |
isDefaultResult()
Get the default result option of this formula. |
void |
reset()
Reset the formula to start over. |
void |
setDefaultResult(boolean def)
Set the default result option of this formula. |
void |
setPercentageType(int percentageType)
Set percentage type. |
void |
setTotal(Object total)
Set the total used to calculate percentage. |
String |
toString()
Get formula name |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MedianFormula()
| Method Detail |
|---|
public void reset()
reset in interface Formulapublic void addValue(double v)
addValue in interface Formulapublic void addValue(double[] v)
addValue in interface Formulapublic void addValue(float v)
addValue in interface Formulapublic void addValue(long v)
addValue in interface Formulapublic void addValue(int v)
addValue in interface Formulapublic void addValue(short v)
addValue in interface Formulapublic void addValue(Object v)
addValue in interface Formulapublic void setDefaultResult(boolean def)
setDefaultResult in interface Formuladef - true to use the default value of a formula if no
result, false to just return null.public boolean isDefaultResult()
isDefaultResult in interface Formulapublic Object getResult()
getResult in interface Formulapublic double getDoubleResult()
getDoubleResult in interface Formulapublic Object clone()
Formula
clone in interface Formulaclone in class Objectpublic int getPercentageType()
getPercentageType in interface PercentageFormulapublic void setPercentageType(int percentageType)
setPercentageType in interface PercentageFormulapublic void setTotal(Object total)
setTotal in interface PercentageFormulapublic Object getOriginalResult()
getOriginalResult in interface PercentageFormulapublic String getDisplayName()
getDisplayName in interface Formulapublic String getName()
getName in interface Formulapublic String toString()
toString in class Object
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||