public class Layer
extends java.lang.Object
| Constructor and Description |
|---|
Layer(byte vi,
byte viNext,
short[][][] coeffAlpha,
short[][][] coeffBeta,
short[][] coeffGamma,
short[] coeffEta)
Constructor
|
Layer(int vi,
int viNext,
java.security.SecureRandom sr)
This function generates the coefficients of all polynomials in this layer
at random using random generator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
This function compares this Layer with another object.
|
short[][][] |
getCoeffAlpha()
Getter for the alpha-coefficients of the polynomials in this layer.
|
short[][][] |
getCoeffBeta()
Getter for the beta-coefficients of the polynomials in this layer.
|
short[] |
getCoeffEta()
Getter for the eta-coefficients of the polynomials in this layer.
|
short[][] |
getCoeffGamma()
Getter for the gamma-coefficients of the polynomials in this layer.
|
int |
getOi()
Getter for the number of Oil variables of this layer.
|
int |
getVi()
Getter for the number of vinegar variables of this layer.
|
int |
getViNext()
Getter for the number of vinegar variables of the next layer.
|
int |
hashCode() |
short[][] |
plugInVinegars(short[] x)
This method plugs in the vinegar variables into the polynomials of this
layer and computes the coefficients of the Oil-variables as well as the
free coefficient in each polynomial.
|
public Layer(byte vi,
byte viNext,
short[][][] coeffAlpha,
short[][][] coeffBeta,
short[][] coeffGamma,
short[] coeffEta)
vi - number of vinegar variables of this layerviNext - number of vinegar variables of next layer. It's the same as
(num of oils) + (num of vinegars) of this layer.coeffAlpha - alpha-coefficients in the polynomials of this layercoeffBeta - beta-coefficients in the polynomials of this layercoeffGamma - gamma-coefficients in the polynomials of this layercoeffEta - eta-coefficients in the polynomials of this layerpublic Layer(int vi,
int viNext,
java.security.SecureRandom sr)
sr - the random generator which is to be usedpublic short[][] plugInVinegars(short[] x)
x - vinegar variables of this layer that should be plugged into
the polynomials.public int getVi()
public int getViNext()
public int getOi()
public short[][][] getCoeffAlpha()
public short[][][] getCoeffBeta()
public short[][] getCoeffGamma()
public short[] getCoeffEta()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the other objectpublic int hashCode()
hashCode in class java.lang.Object