From 0e923b9bc9a114231dc877cc0542e2f8a47622c1 Mon Sep 17 00:00:00 2001
From: Stamatios Sotiropoulos <stam@fmrib.ox.ac.uk>
Date: Fri, 30 Apr 2010 17:20:39 +0000
Subject: [PATCH] Add weighted least squares option for tensor fitting

---
 dtifitOptions.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dtifitOptions.h b/dtifitOptions.h
index 0c35d3b..120a3ea 100644
--- a/dtifitOptions.h
+++ b/dtifitOptions.h
@@ -36,6 +36,7 @@ class dtifitOptions {
   Option<string> bvalsfile;
   Option<string> cni; //confounds of no interest. 
   Option<bool> sse; // Sum of squared errors
+  Option<bool> wls; //Perform Weighted Least squares for tensor fitting 
   Option<bool> littlebit;
   Option<bool> savetensor;
   Option<int> z_min;
@@ -87,11 +88,14 @@ class dtifitOptions {
 	     string("b values file"),
 	     true, requires_argument), 
    cni(string("--cni"), string(""),
-	     string("Input counfound regressors"),
+	     string("Input confound regressors"),
 	     false, requires_argument), 
    sse(string("--sse"), false,
 	     string("Output sum of squared errors"),
 	     false, no_argument), 
+   wls(string("-w,--wls"),false, 
+             string("Fit the tensor with weighted least squares"), 
+             false, no_argument),
    littlebit(string("--littlebit"), false, 
 	     string("Only process small area of brain"), 
 	     false, no_argument),
@@ -130,6 +134,7 @@ class dtifitOptions {
        options.add(bvalsfile);
        options.add(cni);
        options.add(sse);
+       options.add(wls);
        options.add(littlebit);
        options.add(savetensor);
        options.add(z_min);
-- 
GitLab