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[]
costable
Data storeprivate int
halfsteps
Number of steps div 2private double[]
sintable
Data 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 double
cos(int step)
Get Cosine by step value.double
sin(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:
cos
in classSinCosTable
- Parameters:
step
- Step value- Returns:
- Cosinus
-
sin
public double sin(int step)
Get Sinus by step value.- Specified by:
sin
in classSinCosTable
- Parameters:
step
- Step value- Returns:
- Sinus
-
-