def write_membership_settings(outfile, config_params):
    """Writes the Membership section of the final.ini file"""
    outfile.write('\n[Membership]\n')
    outfile.write('probability_row_change = %f\n' % config_params[
        'memb.prob_row_change'])
    outfile.write('probability_column_change = %f\n' % config_params[
        'memb.prob_col_change'])
    outfile.write('max_changes_per_row = %d\n' % config_params[
        'memb.max_changes_per_row'])
    outfile.write('max_changes_per_column = %d\n' % config_params[
        'memb.max_changes_per_col'])
    outfile.write('min_cluster_rows_allowed = %d\n' % config_params[
        'memb.min_cluster_rows_allowed'])
    outfile.write('max_cluster_rows_allowed = %d\n' % config_params[
        'memb.max_cluster_rows_allowed'])
    outfile.write('clusters_per_row = %d\n' % config_params[
        'memb.clusters_per_row'])
    outfile.write('clusters_per_column = %d\n' % config_params[
        'memb.clusters_per_col'])
