public class Detection extends Point implements Leaf<Detection>
Modifier and Type | Field and Description |
---|---|
protected double |
distance |
protected int |
id |
protected boolean |
isUsed |
protected boolean |
useW |
protected double |
weight |
Constructor and Description |
---|
Detection(int id,
double[] location) |
Detection(int id,
double[] location,
double weight) |
Modifier and Type | Method and Description |
---|---|
Detection[] |
createArray(int n) |
float |
distanceTo(Detection o) |
boolean |
equals(Detection otherDetection) |
float |
get(int k) |
double |
getDistance() |
double |
getDistance(Point point2) |
int |
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, squareLocalDistance
protected final int id
protected double weight
protected boolean useW
protected double distance
protected boolean isUsed
public Detection(int id, double[] location)
public Detection(int id, double[] location, double weight)
public void setWeight(double weight)
public double getWeight()
public int getId()
public void setDistance(double distance)
public double getDistance()
public boolean isUsed()
public void setUsed(boolean isUsed)
public boolean equals(Detection otherDetection)
public void setW(double[] wn)
public void resetW()
public double getDistance(Point point2)
public float distanceTo(Detection o)
distanceTo
in interface Leaf<Detection>
public void setUseW(boolean useW)
public boolean getUseW()
public int getNumDimensions()
getNumDimensions
in interface Leaf<Detection>
public Detection[] createArray(int n)
createArray
in interface Leaf<Detection>
Copyright © 2015–2021 Fiji. All rights reserved.