Implement FunctionOnSimplices.