2

R に matlab 関数 histc と同等の関数はありますか? ベクトルとビンは数値です。

[ countInBin, binIndexOfVectorElement ] = histc( vector, bins )

どこ:

bins = min(vector) : increment : max( vector )

length( binIndexOfVectorElement ) = length( vector )
4

1 に答える 1

0

パッケージ pracma には、その matlab の対応物と同様に機能する関数 histc があります。

于 2016-04-10T05:25:01.100 に答える