{
double alph = assn.getDouble (alpha);
int[] sizes = sizesFromVarSet (xs);
Matrix diag = Matrices.diag (sizes, alph);
Matrix matrix = Matrices.constant (sizes, -alph);
matrix.plusEquals (diag);
return LogTableFactor.makeFromLogMatrix (xs.toVariableArray (), (SparseMatrixn) matrix);
}
private int[] sizesFromVarSet (VarSet xs)
{