def _geny(xx, func):
    """
    Generates an array containing y-values corresponding to given x-coordinates
    by using a function y = f(x).

    Args:
        xx (1darray): Array containing the x-values for which matching
            y-values shall be computed.
        func (callable object): The function used to generate the data.

    Returns:
        yy (1darray): Array containing y-values matching the supplied
            x-coordinates.

    """
    yy = func(xx)
    return yy