値のグループをヒストグラム チャートのビンに分割しようとしています。ヒストグラムには 10 個のビンがあります。各ビンのケース数を並べ替えてカウントするために、配列を使用しています。私が得ているエラーはですThe operand of an increment or decrement operator must be a variable, property or indexer
。idx は、インクリメントする必要があるビン番号を教えてくれます。それを増やす適切な方法がわかりません。提案とコメントをありがとう。
int binsize = Convert.ToInt32(xrLabel101.Text) / 10;//Max divided by 10 to get the size of each bin
this.xrChart4.Series[0].Points.Clear();
int binCount = 10;
for (int i = 0; i < binCount; i++)
{
int m = Convert.ToInt32(xrLabel104.Text);//This is the number of loops needed
string[] binct = new string[10];
for (int k = 0; k < m; k++)
{
int idx = Convert.ToInt32(currentcolumnvalue) / binsize;
binct[idx]++;//I know this is wrong. Suggestions?
}
}