Package elki.math
Class SinCosTable.HalfTable
- java.lang.Object
-
- elki.math.SinCosTable
-
- elki.math.SinCosTable.HalfTable
-
- Enclosing class:
- SinCosTable
private static class SinCosTable.HalfTable extends SinCosTable
Table that exploits just one symmetry, as the number of steps is divisible by two.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private double[]costableData storeprivate inthalfstepsNumber of steps div 2private double[]sintableData store-
Fields inherited from class elki.math.SinCosTable
steps
-
-
Constructor Summary
Constructors Constructor Description HalfTable(int steps)Constructor for tables with
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecos(int step)Get Cosine by step value.doublesin(int step)Get Sinus by step value.-
Methods inherited from class elki.math.SinCosTable
make
-
-
-
-
Method Detail
-
cos
public double cos(int step)
Get Cosine by step value.- Specified by:
cosin classSinCosTable- Parameters:
step- Step value- Returns:
- Cosinus
-
sin
public double sin(int step)
Get Sinus by step value.- Specified by:
sinin classSinCosTable- Parameters:
step- Step value- Returns:
- Sinus
-
-