public abstract class SinCosTable extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
SinCosTable.FullTable
Table that can't exploit much symmetry, because the steps are not divisible
by 2.
|
private static class |
SinCosTable.HalfTable
Table that exploits just one symmetry, as the number of steps is divisible
by two.
|
private static class |
SinCosTable.QuarterTable
Table that exploits both symmetries, as the number of steps is divisible by
four.
|
Modifier and Type | Field and Description |
---|---|
protected int |
steps
Number of steps.
|
Modifier | Constructor and Description |
---|---|
private |
SinCosTable(int steps)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract double |
cos(int step)
Get Cosine by step value.
|
static SinCosTable |
make(int steps)
Make a table for the given number of steps.
|
abstract double |
sin(int step)
Get Sinus by step value.
|
private SinCosTable(int steps)
steps
- Number of steps (ideally, steps % 4 = 0
!)public abstract double cos(int step)
step
- Step valuepublic abstract double sin(int step)
step
- Step valuepublic static SinCosTable make(int steps)
steps
- Number of stepsCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.