def get_accelerated_x_1x(sample_num=64):
    '\n    単調増加ではなく、加速度が 0→1→0 となるような x を作る\n\n    Parameters\n    ----------\n    sample_num : int\n        the number of the sample.\n\n    Returns\n    -------\n    array_like\n        accelerated value list\n\n    Examples\n    --------\n    >>> x0 = np.linspace(0, 1, 8)\n    >>> x1 = get_accelerated_x_1x(8)\n    >>> print(x0)\n    >>> [ 0.  0.142  0.285  0.428  0.571  0.714  0.857  1. ]\n    >>> print(x1)\n    >>> [ 0.  0.049  0.188  0.388  0.611  0.811  0.950  1. ]\n    '
    rad = np.linspace(((- 0.5) * np.pi), (0.5 * np.pi), sample_num)
    x = ((np.sin(rad) + 1) / 2)
    return x
単調増加ではなく、加速度が 0→1→0 となるような x を作る

Parameters
----------
sample_num : int
    the number of the sample.

Returns
-------
array_like
    accelerated value list

Examples
--------
>>> x0 = np.linspace(0, 1, 8)
>>> x1 = get_accelerated_x_1x(8)
>>> print(x0)
>>> [ 0.  0.142  0.285  0.428  0.571  0.714  0.857  1. ]
>>> print(x1)
>>> [ 0.  0.049  0.188  0.388  0.611  0.811  0.950  1. ]
def get_accelerated_x_1x(sample_num=64):
    '\n    単調増加ではなく、加速度が 0→1→0 となるような x を作る\n\n    Parameters\n    ----------\n    sample_num : int\n        the number of the sample.\n\n    Returns\n    -------\n    array_like\n        accelerated value list\n\n    Examples\n    --------\n    >>> x0 = np.linspace(0, 1, 8)\n    >>> x1 = get_accelerated_x_1x(8)\n    >>> print(x0)\n    >>> [ 0.  0.142  0.285  0.428  0.571  0.714  0.857  1. ]\n    >>> print(x1)\n    >>> [ 0.  0.049  0.188  0.388  0.611  0.811  0.950  1. ]\n    '
    rad = np.linspace(((- 0.5) * np.pi), (0.5 * np.pi), sample_num)
    x = ((np.sin(rad) + 1) / 2)
    return x