Analysis.IsThresholdFunction
Back to table
/*
Logic-Function-Analysis
Analysis.IsThresholdFunction
[bool result]=Analysis.IsThresholdFunction(LogicFunction f, int t);
f : a logic function
t : an integer less than the number of the variables.
Check whether $f$ is a threshold function with the threshold value $t$.
*/
//-------------------------------------------------------------------
// examples
[f]=AndXor()
{
1;2;3;
}
[g]=Analysis.IsThresholdFunction(f,1);
Print("IsThresholdFunction?", g);
//-------------------------------------------------------------------
// result
Advanced IsBiUnateFunctionTo IsEqual IsPositiveFunction IsThresholdFunction ToAndOr binary() AbsoluteExpression ToDiagram ToPOS ToVariableInvertedFunction Email Equiv FeedbackDiagram NumberSystem LeastSignificantDigit MostSignificantDigit PositiveDecimalToMantissa PositiveNumberToMantissa real() ToStateTransitionTable ROBDD MultiCover Shannon string() TruthTable GetPositiveLogicFunction ComputeDONTCARE Substitute Zero
The website is simply translated by using the Google Translate. Please inform us if you find the wrong/funny/weird translation.