public abstract class AbstractDetection<T extends AbstractDetection<T>> extends Point implements Leaf<T>
| Modifier and Type | Field and Description |
|---|---|
protected double |
distance |
protected long |
id |
protected boolean |
isUsed |
protected boolean |
useW |
protected double |
weight |
| Constructor and Description |
|---|
AbstractDetection(int id,
double[] location) |
AbstractDetection(int id,
double[] location,
double weight) |
| Modifier and Type | Method and Description |
|---|---|
float |
distanceTo(T o) |
boolean |
equals(AbstractDetection<?> otherDetection) |
float |
get(int k) |
double |
getDistance() |
double |
getDistance(Point point2) |
long |
getID() |
int |
getNumDimensions() |
boolean |
getUseW() |
double |
getWeight() |
boolean |
isLeaf() |
boolean |
isUsed() |
void |
resetW() |
void |
setDistance(double distance) |
void |
setUsed(boolean isUsed) |
void |
setUseW(boolean useW) |
void |
setW(double[] wn) |
void |
setWeight(double weight) |
String |
toString() |
apply, apply, apply, applyInverse, applyInverse, clone, distance, distance, getL, getW, localDistance, squareDistance, squareDistance, squareLocalDistanceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateArrayprotected final long id
protected double weight
protected boolean useW
protected double distance
protected boolean isUsed
public AbstractDetection(int id,
double[] location)
public AbstractDetection(int id,
double[] location,
double weight)
public void setWeight(double weight)
public double getWeight()
public long getID()
public void setDistance(double distance)
public double getDistance()
public boolean isUsed()
public void setUsed(boolean isUsed)
public boolean equals(AbstractDetection<?> otherDetection)
public void setW(double[] wn)
public void resetW()
public double getDistance(Point point2)
public boolean isLeaf()
isLeaf in interface Node<T extends AbstractDetection<T>>public float distanceTo(T o)
distanceTo in interface Leaf<T extends AbstractDetection<T>>public void setUseW(boolean useW)
public boolean getUseW()
public float get(int k)
get in interface Leaf<T extends AbstractDetection<T>>public int getNumDimensions()
getNumDimensions in interface Leaf<T extends AbstractDetection<T>>Copyright © 2015–2021 Fiji. All rights reserved.