def init(strKernel, iKernelPar=1, iALDth=1e-4, iMaxDict=1e3):
    """
    Function initializes krls dictionary. |br|

    Args:

        strKernel (string): Type of the kernel

        iKernelPar (float): Kernel parameter [default = 1]

        iALDth (float): ALD threshold [default = 1e-4]

        iMaxDict (int): Max size of the dictionary [default = 1e3]


    Returns:
        dAldKRLS (dictionary):  Python dictionary which contains all the data of the current KRLS algorithm.

        Fields in the output dictionary:

            - a. **iALDth** (*int*):   ALD threshold

            - b. **iMaxDt** (*float*):  Max size of the dictionary

            - c. **strKernel** (*string*):  Type of the kernel

            - d. **iKernelPar** (*float*):  Kernel parameter

            - e. **bInit** (*int*):  Initialization flag = 1. This flag is cleared with a first call to the 'train' function.
    """

    dAldKRLS = {}           # Initialize dictionary with data for aldkrls algorithm

    # Store all the parameters in the dictionary
    dAldKRLS['iALDth'] = iALDth;         # ALD threshold
    dAldKRLS['iMaxDt'] = iMaxDict;       # Maximum size of the dictionary
    dAldKRLS['strKernel'] = strKernel    # Type of the kernel
    dAldKRLS['iKernelPar'] = iKernelPar  # Kernel parameter
    dAldKRLS['bInit'] = 0      # Clear 'Initialization done' flag

    return dAldKRLS