public class Particle extends Point implements Leaf<Particle>
Modifier and Type | Field and Description |
---|---|
protected double |
distance |
protected int |
id |
protected DifferenceOfGaussianPeak<FloatType> |
peak |
protected boolean |
useW |
protected double |
weight |
Constructor and Description |
---|
Particle(int id,
DifferenceOfGaussianPeak<FloatType> peak,
float zStretching) |
Modifier and Type | Method and Description |
---|---|
Particle[] |
createArray(int n) |
float |
distanceTo(Particle o) |
boolean |
equals(Particle o) |
static boolean |
equals(Particle nucleus1,
Particle nucleus2) |
float |
get(int k) |
float |
getDiameter() |
double |
getDistance() |
long |
getID() |
int |
getNumDimensions() |
DifferenceOfGaussianPeak<FloatType> |
getPeak() |
boolean |
getUseW() |
double |
getWeight() |
boolean |
isLeaf() |
void |
resetW() |
void |
restoreCoordinates()
Restores the local and global coordinates from the peak that feeded it initially,
they might have been changed by applying a model during the optimization
|
void |
set(float v,
int k) |
void |
setDiameter(float diameter) |
void |
setDistance(double distance) |
void |
setUseW(boolean useW) |
void |
setW(float[] 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 DifferenceOfGaussianPeak<FloatType> peak
protected double weight
protected double distance
protected boolean useW
public Particle(int id, DifferenceOfGaussianPeak<FloatType> peak, float zStretching)
public DifferenceOfGaussianPeak<FloatType> getPeak()
public void restoreCoordinates()
public long getID()
public void setWeight(double weight)
public double getWeight()
public void setDiameter(float diameter)
public float getDiameter()
public final void setW(float[] wn)
public final void resetW()
public void setUseW(boolean useW)
public boolean getUseW()
public void setDistance(double distance)
public double getDistance()
public void set(float v, int k)
public float distanceTo(Particle o)
distanceTo
in interface Leaf<Particle>
public Particle[] createArray(int n)
createArray
in interface Leaf<Particle>
public int getNumDimensions()
getNumDimensions
in interface Leaf<Particle>
public boolean equals(Particle o)
Copyright © 2015–2021 Fiji. All rights reserved.