Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
change local variable name fix new obscure error
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Griffith committed Nov 6, 2013
1 parent a3a4ace commit ba4e21d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/src/algorithms/convolution/convolution.dart
Expand Up @@ -63,24 +63,24 @@ ConvResults conv(Sequence _x, Sequence _h, [Sequence _xn, Sequence _hn])

// The private class _Convolution.
class _Convolution {
final xdata;
final hdata;
final xd;
final hd;

_Convolution(this.xdata, this.hdata);
_Convolution(this.xd, this.hd);

ConvResults convolve(Sequence xn, Sequence hn) {
if (xdata == null || hdata == null || xdata.isEmpty ||
hdata.isEmpty) {
if (xd == null || hd == null || xd.isEmpty ||
hd.isEmpty) {
throw new ArgumentError("invalid data");
} else {
if (xn == null) xn = sequence(new List.generate(xdata.length,
if (xn == null) xn = sequence(new List.generate(xd.length,
(var index) => index));
if (hn == null) hn = sequence(new List.generate(hdata.length,
if (hn == null) hn = sequence(new List.generate(hd.length,
(var index) => index));
// Create a local copy of each list. This is necessary
// in case xdata and hdata are the same object.
Sequence xdata = sequence(this.xdata);
Sequence hdata = sequence(this.hdata);
Sequence xdata = sequence(this.xd);
Sequence hdata = sequence(this.hd);
bool isInt = false;
final xLength = xdata.length;
final hLength = hdata.length;
Expand Down

0 comments on commit ba4e21d

Please sign in to comment.