533ff301b693aaae8d0e525bafc4d83101fe0d13,plantcv/plantcv/analyze_color.py,,analyze_color,#Any#Any#Any#,12

Before Change



    // loop adds the hue to a list for the frequency of each hue
    temp_hue_list_hsv = []
    for i in range(len(ordered)):

        j = 0

        while j < list(ordered.values())[i]:
            temp_hue_list_hsv.append(list(ordered.keys())[i])

            j += 1

    //calculate relevant statistics 
    circular_mean = stats.circmean(temp_hue_list_hsv, 180)
    circular_std = stats.circstd(temp_hue_list_hsv, 180) // assumes samples are in the range [low to high] which they are

    median = np.median(temp_hue_list_hsv)

After Change


    // Therefore, hue values of zero are excluded from the calculations below

    // Calculate the median encoded hue value
    hue_median = np.median(h[np.where(h > 0)])

    // Calculate the circular mean and standard deviation of the encoded hue values
    hue_circular_mean = stats.circmean(h[np.where(h > 0)], high=179, low=0)
    hue_circular_std = stats.circstd(h[np.where(h > 0)], high=179, low=0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: danforthcenter/plantcv
Commit Name: 533ff301b693aaae8d0e525bafc4d83101fe0d13
Time: 2019-04-11
Author: noahfahlgren@gmail.com
File Name: plantcv/plantcv/analyze_color.py
Class Name:
Method Name: analyze_color


Project Name: WheatonCS/Lexos
Commit Name: 3227c2ed4ae92c6b9ecfc1b2c614ff4c36bd9fd0
Time: 2017-07-21
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/information.py
Class Name: FileInformation
Method Name: __init__


Project Name: pavlin-policar/openTSNE
Commit Name: 46379cefade313fee9fa99c8a6ebb62668918f82
Time: 2018-10-28
Author: pavlin.g.p@gmail.com
File Name: fastTSNE/tsne.py
Class Name: TSNEEmbedding
Method Name: generate_partial_coordinates


Project Name: danforthcenter/plantcv
Commit Name: 533ff301b693aaae8d0e525bafc4d83101fe0d13
Time: 2019-04-11
Author: noahfahlgren@gmail.com
File Name: plantcv/plantcv/analyze_color.py
Class Name:
Method Name: analyze_color