private static class SinCosTable.QuarterTable extends SinCosTable
Modifier and Type | Field and Description |
---|---|
private double[] |
costable
Data store
|
private int |
halfsteps
Number of steps div 2
|
private int |
quarsteps
Number of steps div 4
|
steps
Constructor and Description |
---|
QuarterTable(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 quarsteps
private final int halfsteps
private final double[] costable
public QuarterTable(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 © 2019 ELKI Development Team. License information.