Skip to content

Commit

Permalink
Merge branch 'v1.18' of https://github.com/lixun910/geoda into v1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Dec 11, 2020
2 parents 88cc7c4 + 5795d05 commit 661b4e0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Algorithms/rng.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ class Xoroshiro128Random
#ifdef __WXOSX__
return ((unsigned long long)nextLong() >> 11) * 0x1.0p-53;
#else
char tempStr[] = "0x1.0p-53";
double nd = std::strtod(tempStr, NULL);
double nd = pow(2.0, -53);
return ((unsigned long long)nextLong() >> 11) * nd;
#endif
}
Expand Down
1 change: 1 addition & 0 deletions BuildTools/windows/GeoDa.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@
<ClInclude Include="..\..\Algorithms\pam.h" />
<ClInclude Include="..\..\Algorithms\pca.h" />
<ClInclude Include="..\..\Algorithms\redcap.h" />
<ClInclude Include="..\..\Algorithms\rng.h" />
<ClInclude Include="..\..\Algorithms\S.h" />
<ClInclude Include="..\..\Algorithms\skater.h" />
<ClInclude Include="..\..\Algorithms\smacof.h" />
Expand Down
3 changes: 3 additions & 0 deletions BuildTools/windows/GeoDa.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,9 @@
<ClInclude Include="..\..\Algorithms\azp.h">
<Filter>Algorithms</Filter>
</ClInclude>
<ClInclude Include="..\..\Algorithms\rng.h">
<Filter>Algorithms</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\rc\GdaAppResources.cpp">
Expand Down
2 changes: 1 addition & 1 deletion DialogTools/AZPDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ void AZPDlg::OnOK(wxCommandEvent& event )
// initial = value_initial;
//}

// Get initial seed e.g LISA clusters
// Get initial seed e.g LISA clusters, not used
std::vector<int> init_regions;
bool use_init_regions = chk_lisa->GetValue();
if (use_init_regions) {
Expand Down
13 changes: 13 additions & 0 deletions GdaShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,19 @@ void GdaPolyLine::paintSelf(wxDC& dc)

void GdaPolyLine::paintSelf(wxGraphicsContext* gc)
{
if (null_shape) return;
gc->SetPen(getPen());
gc->SetBrush(getBrush());
int nx = getXNudge();
int ny = getYNudge();
if (n > 1) {
wxGraphicsPath path = gc->CreatePath();
path.MoveToPoint(points[0].x+nx, points[0].y+ny);
for (int i=0, its=n-1; i<its; i++) {
path.AddLineToPoint(points[i+1].x+nx, points[i+1].y+ny);
}
gc->StrokePath(path);
}
}

wxString GdaPolyLine::printDetails()
Expand Down

0 comments on commit 661b4e0

Please sign in to comment.