<commit_before>﻿# NOW - Numerical Optimization of gradient Waveforms
A MATLAB package for optimization of gradient waveforms that enable q-space trajectory imaging (QTI).

## Installation
1. Clone or download this repository.
2. Start MATLAB
3. Go to the download directory
4. Run NOW_GUI in the command window to start the GUI, OR open scripted_NOW_Example.m to see how to script calls to NOW.

## References:
If you find NOW useful in your research, please cite:

<NAME>., <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (2015). Constrained optimization of gradient waveforms for generalized diffusion encoding. Journal of Magnetic Resonance, 261, 157-168.

If you use asymmetric waveforms with Maxwell compensation, please cite the following abstract (or later paper):

<NAME> and <NAME>
"Maxwell-compensated waveform design for asymmetric diffusion encoding"
ISMRM 2018, Paris, France
Download PDF at: https://goo.gl/vVGQq2

#### Bibtex:  
```
@article{Sjolund2015,   
  title={Constrained optimization of gradient waveforms for generalized diffusion encoding},    
  author={<NAME> Szczepankiewicz, Filip and <NAME> and <NAME> and <NAME> and <NAME>},    
  journal={Journal of Magnetic Resonance},    
  volume={261},    
  pages={157--168},    
  year={2015},    
  publisher={Elsevier}    
}
```
<commit_msg>Update reference for Maxwell compensation<commit_after>﻿# NOW - Numerical Optimization of gradient Waveforms
A MATLAB package for optimization of gradient waveforms that enable q-space trajectory imaging (QTI).

## Installation
1. Clone or download this repository.
2. Start MATLAB
3. Go to the download directory
4. Run NOW_GUI in the command window to start the GUI, OR open scripted_NOW_Example.m to see how to script calls to NOW.

## References:
If you find NOW useful in your research, please cite:

<NAME>., <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (2015). Constrained optimization of gradient waveforms for generalized diffusion encoding. Journal of Magnetic Resonance, 261, 157-168.

If you use Maxwell-compensated waveforms, please cite:

<NAME>, <NAME>‐F, <NAME>. Maxwell‐compensated design of asymmetric gradient waveforms for tensor‐valued diffusion encoding. Magn Reson Med. 2019;00:1–14. https://doi.org/10.1002/mrm.27828

#### Bibtex:  
```
@article{Sjolund2015,   
  title={Constrained optimization of gradient waveforms for generalized diffusion encoding},    
  author={<NAME> and Szczepankiewicz, Filip and <NAME> and <NAME> and <NAME> and <NAME>},    
  journal={Journal of Magnetic Resonance},    
  volume={261},    
  pages={157--168},    
  year={2015},    
  publisher={Elsevier}    
}
```

{'fraction_non_alphanumeric': 0.10326499620349279, 'fraction_numerical': 0.03530751708428246, 'mean_word_length': 4.355691056910569, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6972041', 'n_tokens_mistral': 870, 'n_tokens_neox': 746, 'n_words': 308}