|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.linkmap.transform.AbstractWeightFilterTransform
public abstract class AbstractWeightFilterTransform
AbstractWeightFilterTransform provides a basis for Transforms that filter graph artifacts that have a weight that is above or below its threshold. Since both Vertices and Edges have a weight, it is useful for abstracting some functionality in a base class like this.
| Field Summary | |
|---|---|
static boolean |
DEFAULT_LOWER_THRESHOLD
The default value of the lower threshold attribute. |
static float |
DEFAULT_MAX_OBSERVED_WEIGHT
The default value of the "maximum observed weight" threshold. |
static float |
DEFAULT_MIN_OBSERVED_WEIGHT
The default value of the "minimum observed weight" threshold. |
static float |
DEFAULT_THRESHOLD
The default value of the threshold attribute. |
| Constructor Summary | |
|---|---|
AbstractWeightFilterTransform()
Creates an AbstractWeightFilterTransform with default threshold and lower threshold properties. |
|
| Method Summary | |
|---|---|
float |
getMaxObservedWeight()
Returns the maximum observed weight from the set of objects to filter. |
float |
getMinObservedWeight()
Returns the minimum observed weight from the set of objects to filter. |
float |
getThreshold()
|
boolean |
hasLowerThreshold()
|
boolean |
inAllowedRange(float weight)
Utility method that determines whether the specified value passes the threshold. |
void |
setLowerThreshold(boolean lowerThreshold)
|
void |
setMaxObservedWeight(float maxObservedWeight)
|
void |
setMinObservedWeight(float minObservedWeight)
|
void |
setThreshold(float threshold)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface info.aduna.linkmap.transform.Transform |
|---|
transform |
| Field Detail |
|---|
public static final float DEFAULT_THRESHOLD
public static final boolean DEFAULT_LOWER_THRESHOLD
public static final float DEFAULT_MIN_OBSERVED_WEIGHT
public static final float DEFAULT_MAX_OBSERVED_WEIGHT
| Constructor Detail |
|---|
public AbstractWeightFilterTransform()
| Method Detail |
|---|
public void setThreshold(float threshold)
public float getThreshold()
public void setLowerThreshold(boolean lowerThreshold)
public boolean hasLowerThreshold()
public void setMinObservedWeight(float minObservedWeight)
public float getMinObservedWeight()
public void setMaxObservedWeight(float maxObservedWeight)
public float getMaxObservedWeight()
public boolean inAllowedRange(float weight)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||