private static class SinCosTable.HalfTable extends SinCosTable
Modifier and Type | Field and Description |
---|---|
private double[] |
costable
Data store
|
private int |
halfsteps
Number of steps div 2
|
private double[] |
sintable
Data store
|
steps
Constructor and Description |
---|
SinCosTable.HalfTable(int steps)
Constructor for tables with
|
Modifier and Type | Method and Description |
---|---|
double |
cos(int step)
Get Cosine by step value.
|
double |
sin(int step)
Get Sinus by step value.
|
make
private final int halfsteps
private final double[] costable
private final double[] sintable
public SinCosTable.HalfTable(int steps)
steps
- public double cos(int step)
cos
in class SinCosTable
step
- Step valuepublic double sin(int step)
sin
in class SinCosTable
step
- Step valueCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.