diff --git a/js/least-squares-regression-main.js b/js/least-squares-regression-main.js index a8d7cec..49c3cf1 100644 --- a/js/least-squares-regression-main.js +++ b/js/least-squares-regression-main.js @@ -5,16 +5,16 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var LeastSquaresRegressionScreen = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionScreen' ); - var Sim = require( 'JOIST/Sim' ); - var SimLauncher = require( 'JOIST/SimLauncher' ); + const LeastSquaresRegressionScreen = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionScreen' ); + const Sim = require( 'JOIST/Sim' ); + const SimLauncher = require( 'JOIST/SimLauncher' ); // strings - var leastSquaresRegressionTitleString = require( 'string!LEAST_SQUARES_REGRESSION/least-squares-regression.title' ); + const leastSquaresRegressionTitleString = require( 'string!LEAST_SQUARES_REGRESSION/least-squares-regression.title' ); var simOptions = { credits: { diff --git a/js/least-squares-regression/LeastSquaresRegressionConstants.js b/js/least-squares-regression/LeastSquaresRegressionConstants.js index 19ed384..db0bb88 100644 --- a/js/least-squares-regression/LeastSquaresRegressionConstants.js +++ b/js/least-squares-regression/LeastSquaresRegressionConstants.js @@ -5,12 +5,12 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var PhetFont = require( 'SCENERY_PHET/PhetFont' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const PhetFont = require( 'SCENERY_PHET/PhetFont' ); var LeastSquaresRegressionConstants = { diff --git a/js/least-squares-regression/LeastSquaresRegressionScreen.js b/js/least-squares-regression/LeastSquaresRegressionScreen.js index f2c30fa..3411f94 100644 --- a/js/least-squares-regression/LeastSquaresRegressionScreen.js +++ b/js/least-squares-regression/LeastSquaresRegressionScreen.js @@ -4,17 +4,17 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var LeastSquaresRegressionModel = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/LeastSquaresRegressionModel' ); - var LeastSquaresRegressionScreenView = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/LeastSquaresRegressionScreenView' ); - var Property = require( 'AXON/Property' ); - var Screen = require( 'JOIST/Screen' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const LeastSquaresRegressionModel = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/LeastSquaresRegressionModel' ); + const LeastSquaresRegressionScreenView = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/LeastSquaresRegressionScreenView' ); + const Property = require( 'AXON/Property' ); + const Screen = require( 'JOIST/Screen' ); /** * @constructor diff --git a/js/least-squares-regression/model/DataPoint.js b/js/least-squares-regression/model/DataPoint.js index 4a0b6cf..593969f 100644 --- a/js/least-squares-regression/model/DataPoint.js +++ b/js/least-squares-regression/model/DataPoint.js @@ -6,17 +6,17 @@ * @author John Blanco * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var BooleanProperty = require( 'AXON/BooleanProperty' ); - var Emitter = require( 'AXON/Emitter' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Vector2 = require( 'DOT/Vector2' ); - var Vector2Property = require( 'DOT/Vector2Property' ); + const BooleanProperty = require( 'AXON/BooleanProperty' ); + const Emitter = require( 'AXON/Emitter' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Vector2 = require( 'DOT/Vector2' ); + const Vector2Property = require( 'DOT/Vector2Property' ); /** * @param {Vector2} initialPosition diff --git a/js/least-squares-regression/model/DataSet.js b/js/least-squares-regression/model/DataSet.js index 13f0c16..0c30237 100644 --- a/js/least-squares-regression/model/DataSet.js +++ b/js/least-squares-regression/model/DataSet.js @@ -7,12 +7,12 @@ * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var Range = require( 'DOT/Range' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const Range = require( 'DOT/Range' ); // source strings - isolated here, these sources should not be translatable var SOURCES = { diff --git a/js/least-squares-regression/model/Graph.js b/js/least-squares-regression/model/Graph.js index 5616dcd..bc5fe80 100644 --- a/js/least-squares-regression/model/Graph.js +++ b/js/least-squares-regression/model/Graph.js @@ -8,20 +8,20 @@ * @author John Blanco * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var BooleanProperty = require( 'AXON/BooleanProperty' ); - var Bounds2 = require( 'DOT/Bounds2' ); - var DerivedProperty = require( 'AXON/DerivedProperty' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var NumberProperty = require( 'AXON/NumberProperty' ); - var ObservableArray = require( 'AXON/ObservableArray' ); - var Property = require( 'AXON/Property' ); - var Residual = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/Residual' ); - var Vector2 = require( 'DOT/Vector2' ); + const BooleanProperty = require( 'AXON/BooleanProperty' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const DerivedProperty = require( 'AXON/DerivedProperty' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const NumberProperty = require( 'AXON/NumberProperty' ); + const ObservableArray = require( 'AXON/ObservableArray' ); + const Property = require( 'AXON/Property' ); + const Residual = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/Residual' ); + const Vector2 = require( 'DOT/Vector2' ); /** * @param {Range} xRange diff --git a/js/least-squares-regression/model/LeastSquaresRegressionModel.js b/js/least-squares-regression/model/LeastSquaresRegressionModel.js index 4df542a..fa5c62b 100644 --- a/js/least-squares-regression/model/LeastSquaresRegressionModel.js +++ b/js/least-squares-regression/model/LeastSquaresRegressionModel.js @@ -5,23 +5,23 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var BooleanProperty = require( 'AXON/BooleanProperty' ); - var Bucket = require( 'PHETCOMMON/model/Bucket' ); - var DataPoint = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/DataPoint' ); - var DataSet = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/DataSet' ); - var Dimension2 = require( 'DOT/Dimension2' ); - var Emitter = require( 'AXON/Emitter' ); - var Graph = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/Graph' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var ObservableArray = require( 'AXON/ObservableArray' ); - var Property = require( 'AXON/Property' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const BooleanProperty = require( 'AXON/BooleanProperty' ); + const Bucket = require( 'PHETCOMMON/model/Bucket' ); + const DataPoint = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/DataPoint' ); + const DataSet = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/DataSet' ); + const Dimension2 = require( 'DOT/Dimension2' ); + const Emitter = require( 'AXON/Emitter' ); + const Graph = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/Graph' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const ObservableArray = require( 'AXON/ObservableArray' ); + const Property = require( 'AXON/Property' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); // constants var BUCKET_SIZE = new Dimension2( 100, 55 ); diff --git a/js/least-squares-regression/model/Residual.js b/js/least-squares-regression/model/Residual.js index 6be82ef..eb4643f 100644 --- a/js/least-squares-regression/model/Residual.js +++ b/js/least-squares-regression/model/Residual.js @@ -6,13 +6,13 @@ * @author John Blanco * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var Vector2 = require( 'DOT/Vector2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const Vector2 = require( 'DOT/Vector2' ); /** * diff --git a/js/least-squares-regression/view/BestFitLineControlPanel.js b/js/least-squares-regression/view/BestFitLineControlPanel.js index cd75ea5..eaa6719 100644 --- a/js/least-squares-regression/view/BestFitLineControlPanel.js +++ b/js/least-squares-regression/view/BestFitLineControlPanel.js @@ -7,28 +7,28 @@ * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var AccordionBox = require( 'SUN/AccordionBox' ); - var Checkbox = require( 'SUN/Checkbox' ); - var EquationNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/EquationNode' ); - var HStrut = require( 'SCENERY/nodes/HStrut' ); - var inherit = require( 'PHET_CORE/inherit' ); - var LayoutBox = require( 'SCENERY/nodes/LayoutBox' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Panel = require( 'SUN/Panel' ); - var Property = require( 'AXON/Property' ); - var SumOfSquaredResidualsChart = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/SumOfSquaredResidualsChart' ); - var SunConstants = require( 'SUN/SunConstants' ); - var Text = require( 'SCENERY/nodes/Text' ); + const AccordionBox = require( 'SUN/AccordionBox' ); + const Checkbox = require( 'SUN/Checkbox' ); + const EquationNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/EquationNode' ); + const HStrut = require( 'SCENERY/nodes/HStrut' ); + const inherit = require( 'PHET_CORE/inherit' ); + const LayoutBox = require( 'SCENERY/nodes/LayoutBox' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Panel = require( 'SUN/Panel' ); + const Property = require( 'AXON/Property' ); + const SumOfSquaredResidualsChart = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/SumOfSquaredResidualsChart' ); + const SunConstants = require( 'SUN/SunConstants' ); + const Text = require( 'SCENERY/nodes/Text' ); // strings - var bestFitLineString = require( 'string!LEAST_SQUARES_REGRESSION/bestFitLine' ); - var residualsString = require( 'string!LEAST_SQUARES_REGRESSION/residuals' ); - var squaredResidualsString = require( 'string!LEAST_SQUARES_REGRESSION/squaredResiduals' ); + const bestFitLineString = require( 'string!LEAST_SQUARES_REGRESSION/bestFitLine' ); + const residualsString = require( 'string!LEAST_SQUARES_REGRESSION/residuals' ); + const squaredResidualsString = require( 'string!LEAST_SQUARES_REGRESSION/squaredResiduals' ); /** * @param {Graph} graph - model of the graph diff --git a/js/least-squares-regression/view/DataPointCreatorNode.js b/js/least-squares-regression/view/DataPointCreatorNode.js index 3d3a68b..21f970b 100644 --- a/js/least-squares-regression/view/DataPointCreatorNode.js +++ b/js/least-squares-regression/view/DataPointCreatorNode.js @@ -6,19 +6,19 @@ * @author John Blanco * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Circle = require( 'SCENERY/nodes/Circle' ); - var DataPoint = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/DataPoint' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Node = require( 'SCENERY/nodes/Node' ); - var ScreenView = require( 'JOIST/ScreenView' ); - var SimpleDragHandler = require( 'SCENERY/input/SimpleDragHandler' ); - var Vector2 = require( 'DOT/Vector2' ); + const Circle = require( 'SCENERY/nodes/Circle' ); + const DataPoint = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/DataPoint' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Node = require( 'SCENERY/nodes/Node' ); + const ScreenView = require( 'JOIST/ScreenView' ); + const SimpleDragHandler = require( 'SCENERY/input/SimpleDragHandler' ); + const Vector2 = require( 'DOT/Vector2' ); /** * @param {Function} addDataPointToModel - A function for adding the created dataPoint to the model diff --git a/js/least-squares-regression/view/DataPointNode.js b/js/least-squares-regression/view/DataPointNode.js index 11c55cc..e997a76 100644 --- a/js/least-squares-regression/view/DataPointNode.js +++ b/js/least-squares-regression/view/DataPointNode.js @@ -6,13 +6,13 @@ * @author John Blanco * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var Node = require( 'SCENERY/nodes/Node' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const Node = require( 'SCENERY/nodes/Node' ); /** * @param {DataPoint} dataPoint diff --git a/js/least-squares-regression/view/DataSetComboBox.js b/js/least-squares-regression/view/DataSetComboBox.js index 2ebfeed..ef524df 100644 --- a/js/least-squares-regression/view/DataSetComboBox.js +++ b/js/least-squares-regression/view/DataSetComboBox.js @@ -5,7 +5,7 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules diff --git a/js/least-squares-regression/view/DynamicDataPointNode.js b/js/least-squares-regression/view/DynamicDataPointNode.js index 5fda4cb..e832b25 100644 --- a/js/least-squares-regression/view/DynamicDataPointNode.js +++ b/js/least-squares-regression/view/DynamicDataPointNode.js @@ -5,16 +5,16 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Circle = require( 'SCENERY/nodes/Circle' ); - var DataPointNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DataPointNode' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var SimpleDragHandler = require( 'SCENERY/input/SimpleDragHandler' ); + const Circle = require( 'SCENERY/nodes/Circle' ); + const DataPointNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DataPointNode' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const SimpleDragHandler = require( 'SCENERY/input/SimpleDragHandler' ); /** * @param {DataPoint} dataPoint diff --git a/js/least-squares-regression/view/EquationNode.js b/js/least-squares-regression/view/EquationNode.js index eaffbd7..a6e223b 100644 --- a/js/least-squares-regression/view/EquationNode.js +++ b/js/least-squares-regression/view/EquationNode.js @@ -6,21 +6,21 @@ * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Text = require( 'SCENERY/nodes/Text' ); - var Util = require( 'DOT/Util' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Text = require( 'SCENERY/nodes/Text' ); + const Util = require( 'DOT/Util' ); // strings - var symbolXString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.x' ); - var symbolYString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.y' ); + const symbolXString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.x' ); + const symbolYString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.y' ); /** * Scenery Node responsible for laying out the linear equation y = m x + b diff --git a/js/least-squares-regression/view/GraphAxesNode.js b/js/least-squares-regression/view/GraphAxesNode.js index 122f04f..24b9ae2 100644 --- a/js/least-squares-regression/view/GraphAxesNode.js +++ b/js/least-squares-regression/view/GraphAxesNode.js @@ -10,18 +10,18 @@ define( function ( require ) { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Line = require( 'SCENERY/nodes/Line' ); - var MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Path = require( 'SCENERY/nodes/Path' ); - var Rectangle = require( 'SCENERY/nodes/Rectangle' ); - var Shape = require( 'KITE/Shape' ); - var Text = require( 'SCENERY/nodes/Text' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Line = require( 'SCENERY/nodes/Line' ); + const MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Path = require( 'SCENERY/nodes/Path' ); + const Rectangle = require( 'SCENERY/nodes/Rectangle' ); + const Shape = require( 'KITE/Shape' ); + const Text = require( 'SCENERY/nodes/Text' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); //---------------------------------------------------------------------------------------- // constants diff --git a/js/least-squares-regression/view/GraphNode.js b/js/least-squares-regression/view/GraphNode.js index 6de061e..7d7cc3c 100644 --- a/js/least-squares-regression/view/GraphNode.js +++ b/js/least-squares-regression/view/GraphNode.js @@ -6,18 +6,18 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Line = require( 'SCENERY/nodes/Line' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Property = require( 'AXON/Property' ); - var ResidualLineAndSquareNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/ResidualLineAndSquareNode' ); - var Shape = require( 'KITE/Shape' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Line = require( 'SCENERY/nodes/Line' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Property = require( 'AXON/Property' ); + const ResidualLineAndSquareNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/ResidualLineAndSquareNode' ); + const Shape = require( 'KITE/Shape' ); /** * diff --git a/js/least-squares-regression/view/GridIcon.js b/js/least-squares-regression/view/GridIcon.js index 57155e6..86aeadb 100644 --- a/js/least-squares-regression/view/GridIcon.js +++ b/js/least-squares-regression/view/GridIcon.js @@ -5,17 +5,17 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Bounds2 = require( 'DOT/Bounds2' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Path = require( 'SCENERY/nodes/Path' ); - var Shape = require( 'KITE/Shape' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Path = require( 'SCENERY/nodes/Path' ); + const Shape = require( 'KITE/Shape' ); /** * diff --git a/js/least-squares-regression/view/LeastSquaresRegressionScreenView.js b/js/least-squares-regression/view/LeastSquaresRegressionScreenView.js index 4cad721..8eca0fc 100644 --- a/js/least-squares-regression/view/LeastSquaresRegressionScreenView.js +++ b/js/least-squares-regression/view/LeastSquaresRegressionScreenView.js @@ -5,41 +5,41 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var BestFitLineControlPanel = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/BestFitLineControlPanel' ); - var Bounds2 = require( 'DOT/Bounds2' ); - var BucketFront = require( 'SCENERY_PHET/bucket/BucketFront' ); - var BucketHole = require( 'SCENERY_PHET/bucket/BucketHole' ); - var Checkbox = require( 'SUN/Checkbox' ); - var DataPointCreatorNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DataPointCreatorNode' ); - var DataSet = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/DataSet' ); - var DataSetComboBox = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DataSetComboBox' ); - var Dimension2 = require( 'DOT/Dimension2' ); - var DynamicDataPointNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DynamicDataPointNode' ); - var EraserButton = require( 'SCENERY_PHET/buttons/EraserButton' ); - var GraphAxesNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/GraphAxesNode' ); - var GraphNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/GraphNode' ); - var GridIcon = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/GridIcon' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var ModelViewTransform2 = require( 'PHETCOMMON/view/ModelViewTransform2' ); - var MyLineControlPanel = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/MyLineControlPanel' ); - var Node = require( 'SCENERY/nodes/Node' ); - var PearsonCorrelationCoefficientNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/PearsonCorrelationCoefficientNode' ); - var Plane = require( 'SCENERY/nodes/Plane' ); - var ResetAllButton = require( 'SCENERY_PHET/buttons/ResetAllButton' ); - var ScreenView = require( 'JOIST/ScreenView' ); - var SourceAndReferenceNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/SourceAndReferenceNode' ); - var StaticDataPointNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/StaticDataPointNode' ); - var TextPushButton = require( 'SUN/buttons/TextPushButton' ); - var Vector2 = require( 'DOT/Vector2' ); + const BestFitLineControlPanel = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/BestFitLineControlPanel' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const BucketFront = require( 'SCENERY_PHET/bucket/BucketFront' ); + const BucketHole = require( 'SCENERY_PHET/bucket/BucketHole' ); + const Checkbox = require( 'SUN/Checkbox' ); + const DataPointCreatorNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DataPointCreatorNode' ); + const DataSet = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/model/DataSet' ); + const DataSetComboBox = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DataSetComboBox' ); + const Dimension2 = require( 'DOT/Dimension2' ); + const DynamicDataPointNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DynamicDataPointNode' ); + const EraserButton = require( 'SCENERY_PHET/buttons/EraserButton' ); + const GraphAxesNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/GraphAxesNode' ); + const GraphNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/GraphNode' ); + const GridIcon = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/GridIcon' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const ModelViewTransform2 = require( 'PHETCOMMON/view/ModelViewTransform2' ); + const MyLineControlPanel = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/MyLineControlPanel' ); + const Node = require( 'SCENERY/nodes/Node' ); + const PearsonCorrelationCoefficientNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/PearsonCorrelationCoefficientNode' ); + const Plane = require( 'SCENERY/nodes/Plane' ); + const ResetAllButton = require( 'SCENERY_PHET/buttons/ResetAllButton' ); + const ScreenView = require( 'JOIST/ScreenView' ); + const SourceAndReferenceNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/SourceAndReferenceNode' ); + const StaticDataPointNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/StaticDataPointNode' ); + const TextPushButton = require( 'SUN/buttons/TextPushButton' ); + const Vector2 = require( 'DOT/Vector2' ); // strings - var questionMarkString = require( 'string!LEAST_SQUARES_REGRESSION/questionMark' ); + const questionMarkString = require( 'string!LEAST_SQUARES_REGRESSION/questionMark' ); // constants var GRAPH_BOUNDS = new Dimension2( 480, 480 ); // Size of the graph Node diff --git a/js/least-squares-regression/view/MyLineControlPanel.js b/js/least-squares-regression/view/MyLineControlPanel.js index d5d46c0..8e69a0a 100644 --- a/js/least-squares-regression/view/MyLineControlPanel.js +++ b/js/least-squares-regression/view/MyLineControlPanel.js @@ -6,35 +6,35 @@ * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Checkbox = require( 'SUN/Checkbox' ); - var Dimension2 = require( 'DOT/Dimension2' ); - var EquationNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/EquationNode' ); - var HStrut = require( 'SCENERY/nodes/HStrut' ); - var inherit = require( 'PHET_CORE/inherit' ); - var LayoutBox = require( 'SCENERY/nodes/LayoutBox' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Panel = require( 'SUN/Panel' ); - var Range = require( 'DOT/Range' ); - var SumOfSquaredResidualsChart = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/SumOfSquaredResidualsChart' ); - var SunConstants = require( 'SUN/SunConstants' ); - var Text = require( 'SCENERY/nodes/Text' ); - var VSlider = require( 'SUN/VSlider' ); + const Checkbox = require( 'SUN/Checkbox' ); + const Dimension2 = require( 'DOT/Dimension2' ); + const EquationNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/EquationNode' ); + const HStrut = require( 'SCENERY/nodes/HStrut' ); + const inherit = require( 'PHET_CORE/inherit' ); + const LayoutBox = require( 'SCENERY/nodes/LayoutBox' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Panel = require( 'SUN/Panel' ); + const Range = require( 'DOT/Range' ); + const SumOfSquaredResidualsChart = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/SumOfSquaredResidualsChart' ); + const SunConstants = require( 'SUN/SunConstants' ); + const Text = require( 'SCENERY/nodes/Text' ); + const VSlider = require( 'SUN/VSlider' ); // strings - var aString = require( 'string!LEAST_SQUARES_REGRESSION/a' ); - var bString = require( 'string!LEAST_SQUARES_REGRESSION/b' ); - var myLineString = require( 'string!LEAST_SQUARES_REGRESSION/myLine' ); - var residualsString = require( 'string!LEAST_SQUARES_REGRESSION/residuals' ); - var squaredResidualsString = require( 'string!LEAST_SQUARES_REGRESSION/squaredResiduals' ); - var symbolXString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.x' ); - var symbolYString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.y' ); + const aString = require( 'string!LEAST_SQUARES_REGRESSION/a' ); + const bString = require( 'string!LEAST_SQUARES_REGRESSION/b' ); + const myLineString = require( 'string!LEAST_SQUARES_REGRESSION/myLine' ); + const residualsString = require( 'string!LEAST_SQUARES_REGRESSION/residuals' ); + const squaredResidualsString = require( 'string!LEAST_SQUARES_REGRESSION/squaredResiduals' ); + const symbolXString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.x' ); + const symbolYString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.y' ); // constants var SLIDER_OPTIONS = { diff --git a/js/least-squares-regression/view/PearsonCorrelationCoefficientNode.js b/js/least-squares-regression/view/PearsonCorrelationCoefficientNode.js index 0094e97..b9857e4 100644 --- a/js/least-squares-regression/view/PearsonCorrelationCoefficientNode.js +++ b/js/least-squares-regression/view/PearsonCorrelationCoefficientNode.js @@ -5,29 +5,29 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var AccordionBox = require( 'SUN/AccordionBox' ); - var HStrut = require( 'SCENERY/nodes/HStrut' ); - var inherit = require( 'PHET_CORE/inherit' ); - var LayoutBox = require( 'SCENERY/nodes/LayoutBox' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); - var MultiLineText = require( 'SCENERY_PHET/MultiLineText' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Panel = require( 'SUN/Panel' ); - var Property = require( 'AXON/Property' ); - var StringUtils = require( 'PHETCOMMON/util/StringUtils' ); - var Text = require( 'SCENERY/nodes/Text' ); - var Util = require( 'DOT/Util' ); + const AccordionBox = require( 'SUN/AccordionBox' ); + const HStrut = require( 'SCENERY/nodes/HStrut' ); + const inherit = require( 'PHET_CORE/inherit' ); + const LayoutBox = require( 'SCENERY/nodes/LayoutBox' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const MathSymbols = require( 'SCENERY_PHET/MathSymbols' ); + const MultiLineText = require( 'SCENERY_PHET/MultiLineText' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Panel = require( 'SUN/Panel' ); + const Property = require( 'AXON/Property' ); + const StringUtils = require( 'PHETCOMMON/util/StringUtils' ); + const Text = require( 'SCENERY/nodes/Text' ); + const Util = require( 'DOT/Util' ); // string - var symbolRString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.r' ); + const symbolRString = require( 'string!LEAST_SQUARES_REGRESSION/symbol.r' ); var pattern_0r_1value = '{0} {1}'; - var correlationCoefficientString = require( 'string!LEAST_SQUARES_REGRESSION/correlationCoefficient' ); + const correlationCoefficientString = require( 'string!LEAST_SQUARES_REGRESSION/correlationCoefficient' ); // constants var R_EQUALS = StringUtils.format( '{0} =', symbolRString ); diff --git a/js/least-squares-regression/view/ResidualLineAndSquareNode.js b/js/least-squares-regression/view/ResidualLineAndSquareNode.js index 940b161..3ad6b83 100644 --- a/js/least-squares-regression/view/ResidualLineAndSquareNode.js +++ b/js/least-squares-regression/view/ResidualLineAndSquareNode.js @@ -6,18 +6,18 @@ * @author John Blanco * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Line = require( 'SCENERY/nodes/Line' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Poolable = require( 'PHET_CORE/Poolable' ); - var Rectangle = require( 'SCENERY/nodes/Rectangle' ); - var Shape = require( 'KITE/Shape' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Line = require( 'SCENERY/nodes/Line' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Poolable = require( 'PHET_CORE/Poolable' ); + const Rectangle = require( 'SCENERY/nodes/Rectangle' ); + const Shape = require( 'KITE/Shape' ); /** * diff --git a/js/least-squares-regression/view/SourceAndReferenceNode.js b/js/least-squares-regression/view/SourceAndReferenceNode.js index 6536b22..780f964 100644 --- a/js/least-squares-regression/view/SourceAndReferenceNode.js +++ b/js/least-squares-regression/view/SourceAndReferenceNode.js @@ -5,25 +5,25 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Bounds2 = require( 'DOT/Bounds2' ); - var Circle = require( 'SCENERY/nodes/Circle' ); - var inherit = require( 'PHET_CORE/inherit' ); - var LayoutBox = require( 'SCENERY/nodes/LayoutBox' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Line = require( 'SCENERY/nodes/Line' ); - var MultiLineText = require( 'SCENERY_PHET/MultiLineText' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Panel = require( 'SUN/Panel' ); - var ScreenView = require( 'JOIST/ScreenView' ); - var StringUtils = require( 'PHETCOMMON/util/StringUtils' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const Circle = require( 'SCENERY/nodes/Circle' ); + const inherit = require( 'PHET_CORE/inherit' ); + const LayoutBox = require( 'SCENERY/nodes/LayoutBox' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Line = require( 'SCENERY/nodes/Line' ); + const MultiLineText = require( 'SCENERY_PHET/MultiLineText' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Panel = require( 'SUN/Panel' ); + const ScreenView = require( 'JOIST/ScreenView' ); + const StringUtils = require( 'PHETCOMMON/util/StringUtils' ); // strings - var sourcePatternString = require( 'string!LEAST_SQUARES_REGRESSION/sourcePattern' ); + const sourcePatternString = require( 'string!LEAST_SQUARES_REGRESSION/sourcePattern' ); /** * @param {Property.} selectedDataSetProperty diff --git a/js/least-squares-regression/view/StaticDataPointNode.js b/js/least-squares-regression/view/StaticDataPointNode.js index b5a767c..373b071 100644 --- a/js/least-squares-regression/view/StaticDataPointNode.js +++ b/js/least-squares-regression/view/StaticDataPointNode.js @@ -5,15 +5,15 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Circle = require( 'SCENERY/nodes/Circle' ); - var DataPointNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DataPointNode' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Circle = require( 'SCENERY/nodes/Circle' ); + const DataPointNode = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/view/DataPointNode' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); /** * @param {DataPoint} dataPoint diff --git a/js/least-squares-regression/view/SumOfSquaredResidualsChart.js b/js/least-squares-regression/view/SumOfSquaredResidualsChart.js index e362c0b..39ab037 100644 --- a/js/least-squares-regression/view/SumOfSquaredResidualsChart.js +++ b/js/least-squares-regression/view/SumOfSquaredResidualsChart.js @@ -6,22 +6,22 @@ * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var ArrowNode = require( 'SCENERY_PHET/ArrowNode' ); - var inherit = require( 'PHET_CORE/inherit' ); - var leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); - var LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); - var Line = require( 'SCENERY/nodes/Line' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Property = require( 'AXON/Property' ); - var Rectangle = require( 'SCENERY/nodes/Rectangle' ); - var Text = require( 'SCENERY/nodes/Text' ); + const ArrowNode = require( 'SCENERY_PHET/ArrowNode' ); + const inherit = require( 'PHET_CORE/inherit' ); + const leastSquaresRegression = require( 'LEAST_SQUARES_REGRESSION/leastSquaresRegression' ); + const LeastSquaresRegressionConstants = require( 'LEAST_SQUARES_REGRESSION/least-squares-regression/LeastSquaresRegressionConstants' ); + const Line = require( 'SCENERY/nodes/Line' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Property = require( 'AXON/Property' ); + const Rectangle = require( 'SCENERY/nodes/Rectangle' ); + const Text = require( 'SCENERY/nodes/Text' ); // strings - var sumString = require( 'string!LEAST_SQUARES_REGRESSION/sum' ); + const sumString = require( 'string!LEAST_SQUARES_REGRESSION/sum' ); // constants var ARROW_LENGTH = 175; diff --git a/js/leastSquaresRegression.js b/js/leastSquaresRegression.js index 4e11644..8c87754 100644 --- a/js/leastSquaresRegression.js +++ b/js/leastSquaresRegression.js @@ -5,11 +5,11 @@ * * @author Jesse Greenberg */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Namespace = require( 'PHET_CORE/Namespace' ); + const Namespace = require( 'PHET_CORE/Namespace' ); return new Namespace( 'leastSquaresRegression' ); } ); \ No newline at end of file