-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmethod1
More file actions
26 lines (26 loc) · 746 Bytes
/
method1
File metadata and controls
26 lines (26 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ifstream in_source(source_file_full_path);
if(!in_source)
{
cout<<"Cannot open the file!"<<endl;
cin.get();
}
else
{
while (!in_source.eof())
{
getline(in_source, name_source);
result_source = split(name_source, pattern_source);
if (name_source.empty() || stod(result_source[1]) == 0.0)
{
continue;
}
if (stod(result_source[0]) < source_data_min || stod(result_source[0]) > source_data_max)
{
continue;
}
dataSetX_source.push_back(stod(result_source[0]));
dataSetY_source.push_back(stod(result_source[1]));
}
in_source.close();
}
NUMDATA_source=dataSetX_source.size();