b171c97f2974ef3f884ad9674de137eda7023875,functions/LinearSpectralUnmixing.py,LinearSpectralUnmixing,updateRasterInfo,#LinearSpectralUnmixing#,55

Before Change



        // convert input endmember signatures into arrays of each endmember across bands
        // [[vegB, vegG, vegR, ...], [shadowB, shadowG, shadowR, ...], [...]]
        signaturesArray = np.array(self.inputSignatures.values())

        // transpose signature axes to into arrays of each band"s endmembers
        // [[vegB, shadowB, npvB, ...], [vegG, shadowG, npvG, ...], [...]]
        // assign to coefficients member var to use in np.linalg.lstsq()

After Change


        // ... and then transpose signature axes to into arrays of each band"s endmembers
        // [[vegB, shadowB, npvB, ...], [vegG, shadowG, npvG, ...], [...]]
        // assign to coefficients member var to use in np.linalg.lstsq()
        self.coefficients = np.array(list(self.signatures.values())).T

        // output bandCount is number of endmembers + 1 residuals raster
        if self.coefficients.shape[0] != kwargs["raster_info"]["bandCount"]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Esri/raster-functions
Commit Name: b171c97f2974ef3f884ad9674de137eda7023875
Time: 2015-03-01
Author: akferoz@esri.com
File Name: functions/LinearSpectralUnmixing.py
Class Name: LinearSpectralUnmixing
Method Name: updateRasterInfo


Project Name: thoughtworksarts/EmoPy
Commit Name: 929a1d5e218e64161d40fa094f7bdddcfeb589c8
Time: 2018-02-05
Author: aperez@thoughtworks.com
File Name: fermodel.py
Class Name: FERModel
Method Name: _extract_features


Project Name: nicodv/kmodes
Commit Name: 5db9119652e6dbdb52086040db1898d00c3f2b63
Time: 2013-09-10
Author: njdevos@gmail.com
File Name: kmodes.py
Class Name: FuzzyCentroidsKModes
Method Name: get_fuzzy_dissim